Thread (75 messages) read the whole thread 75 messages, 13 authors, 2011-01-08
STALE5682d REVIEWED: 1 (0M)

Revision v1 of 2 in this series; 1 review trailer.

Revisions (2)
  1. v1 [diff vs current]
  2. v1 current

[PATCH 17/40] ARM: nuc: update clock source registration

From: Wan ZongShun <hidden>
Date: 2010-12-17 13:21:04

2010/12/17 Russell King - ARM Linux [off-list ref]:
quoted hunk ↗ jump to hunk
In d7e81c2 (clocksource: Add clocksource_register_hz/khz interface) new
interfaces were added which simplify (and optimize) the selection of the
divisor shift/mult constants. ?Switch over to using this new interface.

Signed-off-by: Russell King <redacted>
---
?arch/arm/mach-w90x900/time.c | ? ?5 +----
?1 files changed, 1 insertions(+), 4 deletions(-)
diff --git a/arch/arm/mach-w90x900/time.c b/arch/arm/mach-w90x900/time.c
index b80f769..4b089cb 100644
--- a/arch/arm/mach-w90x900/time.c
+++ b/arch/arm/mach-w90x900/time.c
@@ -153,7 +153,6 @@ static struct clocksource clocksource_nuc900 = {
? ? ? ?.rating = 200,
? ? ? ?.read ? = nuc900_get_cycles,
? ? ? ?.mask ? = CLOCKSOURCE_MASK(TDR_SHIFT),
- ? ? ? .shift ?= 10,
? ? ? ?.flags ?= CLOCK_SOURCE_IS_CONTINUOUS,
?};
@@ -176,9 +175,7 @@ static void __init nuc900_clocksource_init(void)
? ? ? ?val |= (COUNTEN | PERIOD | PRESCALE);
? ? ? ?__raw_writel(val, REG_TCSR1);

- ? ? ? clocksource_nuc900.mult =
- ? ? ? ? ? ? ? clocksource_khz2mult((rate / 1000), clocksource_nuc900.shift);
- ? ? ? clocksource_register(&clocksource_nuc900);
+ ? ? ? clocksource_register_hz(&clocksource_nuc900, rate);
?}

?static void __init nuc900_timer_init(void)
Acked-by: Wan zongshun <redacted>
--
1.6.2.5


-- 
*linux-arm-kernel mailing list
mail addr:linux-arm-kernel at lists.infradead.org
you can subscribe by:
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel

* linux-arm-NUC900 mailing list
mail addr:NUC900 at googlegroups.com
main web: https://groups.google.com/group/NUC900
you can subscribe it by sending me mail:
mcuos.com at gmail.com
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help