diff options
Diffstat (limited to 'kernel/hrtimer.c')
-rw-r--r-- | kernel/hrtimer.c | 13 |
1 files changed, 5 insertions, 8 deletions
diff --git a/kernel/hrtimer.c b/kernel/hrtimer.c index ab80515008f4..b8e4dce80a74 100644 --- a/kernel/hrtimer.c +++ b/kernel/hrtimer.c | |||
@@ -300,11 +300,10 @@ EXPORT_SYMBOL_GPL(ktime_sub_ns); | |||
300 | */ | 300 | */ |
301 | u64 ktime_divns(const ktime_t kt, s64 div) | 301 | u64 ktime_divns(const ktime_t kt, s64 div) |
302 | { | 302 | { |
303 | u64 dclc, inc, dns; | 303 | u64 dclc; |
304 | int sft = 0; | 304 | int sft = 0; |
305 | 305 | ||
306 | dclc = dns = ktime_to_ns(kt); | 306 | dclc = ktime_to_ns(kt); |
307 | inc = div; | ||
308 | /* Make sure the divisor is less than 2^32: */ | 307 | /* Make sure the divisor is less than 2^32: */ |
309 | while (div >> 32) { | 308 | while (div >> 32) { |
310 | sft++; | 309 | sft++; |
@@ -623,7 +622,7 @@ static void retrigger_next_event(void *arg) | |||
623 | void clock_was_set(void) | 622 | void clock_was_set(void) |
624 | { | 623 | { |
625 | /* Retrigger the CPU local events everywhere */ | 624 | /* Retrigger the CPU local events everywhere */ |
626 | on_each_cpu(retrigger_next_event, NULL, 0, 1); | 625 | on_each_cpu(retrigger_next_event, NULL, 1); |
627 | } | 626 | } |
628 | 627 | ||
629 | /* | 628 | /* |
@@ -632,8 +631,6 @@ void clock_was_set(void) | |||
632 | */ | 631 | */ |
633 | void hres_timers_resume(void) | 632 | void hres_timers_resume(void) |
634 | { | 633 | { |
635 | WARN_ON_ONCE(num_online_cpus() > 1); | ||
636 | |||
637 | /* Retrigger the CPU local events: */ | 634 | /* Retrigger the CPU local events: */ |
638 | retrigger_next_event(NULL); | 635 | retrigger_next_event(NULL); |
639 | } | 636 | } |
@@ -1086,7 +1083,7 @@ ktime_t hrtimer_get_remaining(const struct hrtimer *timer) | |||
1086 | } | 1083 | } |
1087 | EXPORT_SYMBOL_GPL(hrtimer_get_remaining); | 1084 | EXPORT_SYMBOL_GPL(hrtimer_get_remaining); |
1088 | 1085 | ||
1089 | #if defined(CONFIG_NO_IDLE_HZ) || defined(CONFIG_NO_HZ) | 1086 | #ifdef CONFIG_NO_HZ |
1090 | /** | 1087 | /** |
1091 | * hrtimer_get_next_event - get the time until next expiry event | 1088 | * hrtimer_get_next_event - get the time until next expiry event |
1092 | * | 1089 | * |
@@ -1677,7 +1674,7 @@ void __init hrtimers_init(void) | |||
1677 | (void *)(long)smp_processor_id()); | 1674 | (void *)(long)smp_processor_id()); |
1678 | register_cpu_notifier(&hrtimers_nb); | 1675 | register_cpu_notifier(&hrtimers_nb); |
1679 | #ifdef CONFIG_HIGH_RES_TIMERS | 1676 | #ifdef CONFIG_HIGH_RES_TIMERS |
1680 | open_softirq(HRTIMER_SOFTIRQ, run_hrtimer_softirq, NULL); | 1677 | open_softirq(HRTIMER_SOFTIRQ, run_hrtimer_softirq); |
1681 | #endif | 1678 | #endif |
1682 | } | 1679 | } |
1683 | 1680 | ||