[PATCH 1/2] powerpc: export ppc_tb_freq so that modules can reference it

Timur Tabi timur at freescale.com
Sat Sep 18 08:53:27 EST 2010


Export the global variable 'ppc_tb_freq', so that modules (like the Book-E
watchdog driver) can use it.

Signed-off-by: Timur Tabi <timur at freescale.com>
---

This export is necessary for the Book-E watchdog driver to be compiled as a
module.  Since ppc_proc_freq is already exported, I figured it's okay for
ppc_tb_freq to be exported as well.

 arch/powerpc/kernel/time.c |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)

diff --git a/arch/powerpc/kernel/time.c b/arch/powerpc/kernel/time.c
index 8533b3b..49aa130 100644
--- a/arch/powerpc/kernel/time.c
+++ b/arch/powerpc/kernel/time.c
@@ -163,6 +163,7 @@ static long timezone_offset;
 unsigned long ppc_proc_freq;
 EXPORT_SYMBOL(ppc_proc_freq);
 unsigned long ppc_tb_freq;
+EXPORT_SYMBOL(ppc_tb_freq);
 
 static DEFINE_PER_CPU(u64, last_jiffy);
 
-- 
1.7.2.3




More information about the Linuxppc-dev mailing list