lkml.org 
[lkml]   [2010]   [Oct]   [20]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    Patch in this message
    /
    From
    Subject[PATCH 4/7] sparc: convert to clocksource_register_hz/khz
    Date
    This converts the sparc clocksources to use clocksource_register_hz/khz

    This is untested, so any assistance in testing would be appreciated!

    Signed-off-by: John Stultz <johnstul@us.ibm.com>
    CC: "David S. Miller" <davem@davemloft.net>
    CC: Thomas Gleixner <tglx@linutronix.de>
    ---
    arch/sparc/kernel/time_64.c | 4 +---
    1 files changed, 1 insertions(+), 3 deletions(-)

    diff --git a/arch/sparc/kernel/time_64.c b/arch/sparc/kernel/time_64.c
    index 3bc9c99..58aa27b 100644
    --- a/arch/sparc/kernel/time_64.c
    +++ b/arch/sparc/kernel/time_64.c
    @@ -816,14 +816,12 @@ void __init time_init(void)
    clocksource_hz2mult(freq, SPARC64_NSEC_PER_CYC_SHIFT);

    clocksource_tick.name = tick_ops->name;
    - clocksource_calc_mult_shift(&clocksource_tick, freq, 4);
    clocksource_tick.read = clocksource_tick_read;

    + clocksource_register_hz(&clocksource_tick, freq);
    printk("clocksource: mult[%x] shift[%d]\n",
    clocksource_tick.mult, clocksource_tick.shift);

    - clocksource_register(&clocksource_tick);
    -
    sparc64_clockevent.name = tick_ops->name;
    clockevents_calc_mult_shift(&sparc64_clockevent, freq, 4);

    --
    1.6.0.4


    \
     
     \ /
      Last update: 2010-10-21 01:47    [W:0.034 / U:0.204 seconds]
    ©2003-2016 Jasper Spaans. hosted at Digital OceanAdvertise on this site