lkml.org 
[lkml]   [2008]   [Nov]   [26]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    Patch in this message
    /
    Date
    From
    Subject[patch 05/17] MIPS : export hpt frequency for get_cycles
    get_cycles_rate() needs to export the hpt frequency to modules (e.g. LTTng).

    Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@polymtl.ca>
    CC: Ralf Baechle <ralf@linux-mips.org>
    ---
    arch/mips/include/asm/timex.h | 2 ++
    arch/mips/kernel/time.c | 1 +
    2 files changed, 3 insertions(+)

    Index: linux.trees.git/arch/mips/include/asm/timex.h
    ===================================================================
    --- linux.trees.git.orig/arch/mips/include/asm/timex.h 2008-11-12 18:15:48.000000000 -0500
    +++ linux.trees.git/arch/mips/include/asm/timex.h 2008-11-26 06:49:19.000000000 -0500
    @@ -20,6 +20,8 @@
    */
    #define CLOCK_TICK_RATE 1193182

    +extern unsigned int mips_hpt_frequency;
    +
    /*
    * Standard way to access the cycle counter.
    * Currently only used on SMP for scheduling.
    Index: linux.trees.git/arch/mips/kernel/time.c
    ===================================================================
    --- linux.trees.git.orig/arch/mips/kernel/time.c 2008-11-12 18:15:47.000000000 -0500
    +++ linux.trees.git/arch/mips/kernel/time.c 2008-11-26 06:49:19.000000000 -0500
    @@ -70,6 +70,7 @@ EXPORT_SYMBOL(perf_irq);
    */

    unsigned int mips_hpt_frequency;
    +EXPORT_SYMBOL(mips_hpt_frequency);

    void __init clocksource_set_clock(struct clocksource *cs, unsigned int clock)
    {
    --
    Mathieu Desnoyers
    OpenPGP key fingerprint: 8CD5 52C3 8E3C 4140 715F BA06 3F25 A8FE 3BAE 9A68


    \
     
     \ /
      Last update: 2008-11-26 14:01    [W:4.284 / U:0.892 seconds]
    ©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site