diff options
author | Linus Torvalds <torvalds@linux-foundation.org> | 2012-01-06 16:57:44 -0500 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2012-01-06 16:57:44 -0500 |
commit | 376613e81ddc68f545fd5c87ffc3ad222b7abe5f (patch) | |
tree | e1cb1cd43d05f57e4584dd5f9ce3eb965d0ddff1 /arch/um | |
parent | 0db49b72bce26341274b74fd968501489a361ae3 (diff) | |
parent | 0518469d0a32be1e6dd8850ff274d52d72cdb52d (diff) |
Merge branch 'timers-core-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip
* 'timers-core-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip:
x86, tsc: Skip TSC synchronization checks for tsc=reliable
clocksource: Convert tcb_clksrc to use clocksource_register_hz/khz
clocksource: cris: Convert to clocksource_register_khz
clocksource: xtensa: Convert to clocksource_register_hz/khz
clocksource: um: Convert to clocksource_register_hz/khz
clocksource: parisc: Convert to clocksource_register_hz/khz
clocksource: m86k: Convert to clocksource_register_hz/khz
time: x86: Replace LATCH with PIT_LATCH in i8253 clocksource driver
time: x86: Remove CLOCK_TICK_RATE from acpi_pm clocksource driver
time: x86: Remove CLOCK_TICK_RATE from mach_timer.h
time: x86: Remove CLOCK_TICK_RATE from tsc code
time: Fix spelling mistakes in new comments
time: fix bogus comment in timekeeping_get_ns_raw
Diffstat (limited to 'arch/um')
-rw-r--r-- | arch/um/kernel/time.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/arch/um/kernel/time.c b/arch/um/kernel/time.c index a08d9fab81f..82a6e22f1f3 100644 --- a/arch/um/kernel/time.c +++ b/arch/um/kernel/time.c | |||
@@ -75,8 +75,6 @@ static struct clocksource itimer_clocksource = { | |||
75 | .rating = 300, | 75 | .rating = 300, |
76 | .read = itimer_read, | 76 | .read = itimer_read, |
77 | .mask = CLOCKSOURCE_MASK(64), | 77 | .mask = CLOCKSOURCE_MASK(64), |
78 | .mult = 1000, | ||
79 | .shift = 0, | ||
80 | .flags = CLOCK_SOURCE_IS_CONTINUOUS, | 78 | .flags = CLOCK_SOURCE_IS_CONTINUOUS, |
81 | }; | 79 | }; |
82 | 80 | ||
@@ -94,9 +92,9 @@ static void __init setup_itimer(void) | |||
94 | clockevent_delta2ns(60 * HZ, &itimer_clockevent); | 92 | clockevent_delta2ns(60 * HZ, &itimer_clockevent); |
95 | itimer_clockevent.min_delta_ns = | 93 | itimer_clockevent.min_delta_ns = |
96 | clockevent_delta2ns(1, &itimer_clockevent); | 94 | clockevent_delta2ns(1, &itimer_clockevent); |
97 | err = clocksource_register(&itimer_clocksource); | 95 | err = clocksource_register_hz(&itimer_clocksource, USEC_PER_SEC); |
98 | if (err) { | 96 | if (err) { |
99 | printk(KERN_ERR "clocksource_register returned %d\n", err); | 97 | printk(KERN_ERR "clocksource_register_hz returned %d\n", err); |
100 | return; | 98 | return; |
101 | } | 99 | } |
102 | clockevents_register_device(&itimer_clockevent); | 100 | clockevents_register_device(&itimer_clockevent); |