[PATCH 1/2] powerpc: export ppc_tb_freq so that modules can reference it
Josh Boyer
jwboyer at gmail.com
Sat Sep 18 10:38:52 EST 2010
On Fri, Sep 17, 2010 at 6:53 PM, Timur Tabi <timur at freescale.com> wrote:
> 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);
EXPORT_SYMBOL_GPL probably, no?
josh
More information about the Linuxppc-dev
mailing list