projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
992a88b
)
avr32: Convert to clocksource_register_hz
author
John Stultz
<
[email protected]
>
Mon, 1 Nov 2010 20:12:27 +0000
(13:12 -0700)
committer
Hans-Christian Egtvedt
<
[email protected]
>
Thu, 13 Jan 2011 19:41:11 +0000
(20:41 +0100)
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 <
[email protected]
>
CC: Thomas Gleixner <
[email protected]
>
Signed-off-by: John Stultz <
[email protected]
>
arch/avr32/kernel/time.c
patch
|
blob
|
history
diff --git
a/arch/avr32/kernel/time.c
b/arch/avr32/kernel/time.c
index 668ed2817e51dfce0d6a94324ef95b8f59ddb639..05ad29112ff491f393bfda90cbfcd12fc9d8dfd6 100644
(file)
--- 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);