]> Pileus Git - ~andy/linux/commitdiff
clocksource: parisc: Convert to clocksource_register_hz/khz
authorJohn Stultz <johnstul@us.ibm.com>
Tue, 27 Apr 2010 03:23:50 +0000 (20:23 -0700)
committerJohn Stultz <john.stultz@linaro.org>
Tue, 22 Nov 2011 03:01:02 +0000 (19:01 -0800)
This converts the parisc clocksources to use clocksource_register_hz/khz

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

CC: Kyle McMartin <kyle@mcmartin.ca>
CC: Thomas Gleixner <tglx@linutronix.de>
Signed-off-by: John Stultz <johnstul@us.ibm.com>
arch/parisc/kernel/time.c

index 45b7389d77aa5a18e1ce4adf883ff7c985b320cc..7c0774397b896a0e42450bf1dc0266ad903b67b1 100644 (file)
@@ -198,8 +198,6 @@ static struct clocksource clocksource_cr16 = {
        .rating                 = 300,
        .read                   = read_cr16,
        .mask                   = CLOCKSOURCE_MASK(BITS_PER_LONG),
-       .mult                   = 0, /* to be set */
-       .shift                  = 22,
        .flags                  = CLOCK_SOURCE_IS_CONTINUOUS,
 };
 
@@ -270,7 +268,5 @@ void __init time_init(void)
 
        /* register at clocksource framework */
        current_cr16_khz = PAGE0->mem_10msec/10;  /* kHz */
-       clocksource_cr16.mult = clocksource_khz2mult(current_cr16_khz,
-                                               clocksource_cr16.shift);
-       clocksource_register(&clocksource_cr16);
+       clocksource_register_khz(&clocksource_cr16, current_cr16_khz);
 }