summaryrefslogtreecommitdiff
path: root/arch/parisc
diff options
context:
space:
mode:
authorJohn Stultz <johnstul@us.ibm.com>2010-04-26 20:23:50 -0700
committerJohn Stultz <john.stultz@linaro.org>2011-11-21 19:01:02 -0800
commit63e496340f07b58925f690451c93171d9b04fe1e (patch)
treebe1dda1881b8bb893cc656cea8f360ae55c3f42c /arch/parisc
parent010f3f1692b22f8ddabdccc6526915e181e49447 (diff)
downloadlinux-3.10-63e496340f07b58925f690451c93171d9b04fe1e.tar.gz
linux-3.10-63e496340f07b58925f690451c93171d9b04fe1e.tar.bz2
linux-3.10-63e496340f07b58925f690451c93171d9b04fe1e.zip
clocksource: parisc: Convert to clocksource_register_hz/khz
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>
Diffstat (limited to 'arch/parisc')
-rw-r--r--arch/parisc/kernel/time.c6
1 files changed, 1 insertions, 5 deletions
diff --git a/arch/parisc/kernel/time.c b/arch/parisc/kernel/time.c
index 45b7389d77a..7c0774397b8 100644
--- a/arch/parisc/kernel/time.c
+++ b/arch/parisc/kernel/time.c
@@ -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);
}