diff options
author | Olof Johansson <olof@lixom.net> | 2013-01-14 13:20:02 -0500 |
---|---|---|
committer | Olof Johansson <olof@lixom.net> | 2013-01-14 13:20:02 -0500 |
commit | 8d84981e395850aab31c3f2ca7e2738e03f671d7 (patch) | |
tree | 933425fddb23d28be802277471df3fe3f6c2711d /arch/arm/mach-ixp4xx | |
parent | 00c82d64405631967dca3890a9ce80ab35d04cc7 (diff) | |
parent | 77cc982f6a3b33a5aa058ad3b20cda8866db2948 (diff) |
Merge branch 'clocksource/cleanup' into next/cleanup
Clockevent cleanup series from Shawn Guo.
Resolved move/change conflict in mach-pxa/time.c due to the sys_timer
cleanup.
* clocksource/cleanup:
clocksource: use clockevents_config_and_register() where possible
ARM: use clockevents_config_and_register() where possible
clockevents: export clockevents_config_and_register for module use
+ sync to Linux 3.8-rc3
Signed-off-by: Olof Johansson <olof@lixom.net>
Conflicts:
arch/arm/mach-pxa/time.c
Diffstat (limited to 'arch/arm/mach-ixp4xx')
-rw-r--r-- | arch/arm/mach-ixp4xx/common.c | 11 |
1 files changed, 2 insertions, 9 deletions
diff --git a/arch/arm/mach-ixp4xx/common.c b/arch/arm/mach-ixp4xx/common.c index f6ac695ceb60..1dbeb7c99d58 100644 --- a/arch/arm/mach-ixp4xx/common.c +++ b/arch/arm/mach-ixp4xx/common.c | |||
@@ -519,22 +519,15 @@ static struct clock_event_device clockevent_ixp4xx = { | |||
519 | .name = "ixp4xx timer1", | 519 | .name = "ixp4xx timer1", |
520 | .features = CLOCK_EVT_FEAT_PERIODIC | CLOCK_EVT_FEAT_ONESHOT, | 520 | .features = CLOCK_EVT_FEAT_PERIODIC | CLOCK_EVT_FEAT_ONESHOT, |
521 | .rating = 200, | 521 | .rating = 200, |
522 | .shift = 24, | ||
523 | .set_mode = ixp4xx_set_mode, | 522 | .set_mode = ixp4xx_set_mode, |
524 | .set_next_event = ixp4xx_set_next_event, | 523 | .set_next_event = ixp4xx_set_next_event, |
525 | }; | 524 | }; |
526 | 525 | ||
527 | static void __init ixp4xx_clockevent_init(void) | 526 | static void __init ixp4xx_clockevent_init(void) |
528 | { | 527 | { |
529 | clockevent_ixp4xx.mult = div_sc(IXP4XX_TIMER_FREQ, NSEC_PER_SEC, | ||
530 | clockevent_ixp4xx.shift); | ||
531 | clockevent_ixp4xx.max_delta_ns = | ||
532 | clockevent_delta2ns(0xfffffffe, &clockevent_ixp4xx); | ||
533 | clockevent_ixp4xx.min_delta_ns = | ||
534 | clockevent_delta2ns(0xf, &clockevent_ixp4xx); | ||
535 | clockevent_ixp4xx.cpumask = cpumask_of(0); | 528 | clockevent_ixp4xx.cpumask = cpumask_of(0); |
536 | 529 | clockevents_config_and_register(&clockevent_ixp4xx, IXP4XX_TIMER_FREQ, | |
537 | clockevents_register_device(&clockevent_ixp4xx); | 530 | 0xf, 0xfffffffe); |
538 | } | 531 | } |
539 | 532 | ||
540 | void ixp4xx_restart(char mode, const char *cmd) | 533 | void ixp4xx_restart(char mode, const char *cmd) |