aboutsummaryrefslogtreecommitdiff
path: root/arch/avr32
diff options
context:
space:
mode:
authorJohn Stultz <johnstul@us.ibm.com>2010-11-01 13:12:27 -0700
committerHans-Christian Egtvedt <hans-christian.egtvedt@atmel.com>2011-01-13 20:41:11 +0100
commit1e2de47cddc70ae973cf468e2f2954b4ae80f4e3 (patch)
tree94449ebcdcf1328fe09fc7901abb799c34f72c5a /arch/avr32
parent992a88b62ca327f10d82dbad71a8c061d4229888 (diff)
downloadlinux-2.6.38-lt-ux500-1e2de47cddc70ae973cf468e2f2954b4ae80f4e3.tar.gz
avr32: Convert to clocksource_register_hz
This converts the avr32 clocksource to use clocksource_register_hz. This is untested, so any assistance in testing would be appreciated! CC: Hans-Christian Egtvedt <hans-christian.egtvedt@atmel.com> CC: Thomas Gleixner <tglx@linutronix.de> Signed-off-by: John Stultz <johnstul@us.ibm.com>
Diffstat (limited to 'arch/avr32')
-rw-r--r--arch/avr32/kernel/time.c5
1 files changed, 1 insertions, 4 deletions
diff --git a/arch/avr32/kernel/time.c b/arch/avr32/kernel/time.c
index 668ed2817e5..05ad29112ff 100644
--- a/arch/avr32/kernel/time.c
+++ b/arch/avr32/kernel/time.c
@@ -35,7 +35,6 @@ static struct clocksource counter = {
.rating = 50,
.read = read_cycle_count,
.mask = CLOCKSOURCE_MASK(32),
- .shift = 16,
.flags = CLOCK_SOURCE_IS_CONTINUOUS,
};
@@ -123,9 +122,7 @@ void __init time_init(void)
/* figure rate for counter */
counter_hz = clk_get_rate(boot_cpu_data.clk);
- counter.mult = clocksource_hz2mult(counter_hz, counter.shift);
-
- ret = clocksource_register(&counter);
+ ret = clocksource_register_hz(&counter, counter_hz);
if (ret)
pr_debug("timer: could not register clocksource: %d\n", ret);