diff options
Diffstat (limited to 'kernel/timer.c')
| -rw-r--r-- | kernel/timer.c | 12 |
1 files changed, 2 insertions, 10 deletions
diff --git a/kernel/timer.c b/kernel/timer.c index ceacc6626572..03bc7f1f1593 100644 --- a/kernel/timer.c +++ b/kernel/timer.c | |||
| @@ -812,7 +812,7 @@ static inline void __run_timers(struct tvec_base *base) | |||
| 812 | spin_unlock_irq(&base->lock); | 812 | spin_unlock_irq(&base->lock); |
| 813 | } | 813 | } |
| 814 | 814 | ||
| 815 | #if defined(CONFIG_NO_IDLE_HZ) || defined(CONFIG_NO_HZ) | 815 | #ifdef CONFIG_NO_HZ |
| 816 | /* | 816 | /* |
| 817 | * Find out when the next timer event is due to happen. This | 817 | * Find out when the next timer event is due to happen. This |
| 818 | * is used on S/390 to stop all activity when a cpus is idle. | 818 | * is used on S/390 to stop all activity when a cpus is idle. |
| @@ -947,14 +947,6 @@ unsigned long get_next_timer_interrupt(unsigned long now) | |||
| 947 | 947 | ||
| 948 | return cmp_next_hrtimer_event(now, expires); | 948 | return cmp_next_hrtimer_event(now, expires); |
| 949 | } | 949 | } |
| 950 | |||
| 951 | #ifdef CONFIG_NO_IDLE_HZ | ||
| 952 | unsigned long next_timer_interrupt(void) | ||
| 953 | { | ||
| 954 | return get_next_timer_interrupt(jiffies); | ||
| 955 | } | ||
| 956 | #endif | ||
| 957 | |||
| 958 | #endif | 950 | #endif |
| 959 | 951 | ||
| 960 | #ifndef CONFIG_VIRT_CPU_ACCOUNTING | 952 | #ifndef CONFIG_VIRT_CPU_ACCOUNTING |
| @@ -1502,7 +1494,7 @@ void __init init_timers(void) | |||
| 1502 | 1494 | ||
| 1503 | BUG_ON(err == NOTIFY_BAD); | 1495 | BUG_ON(err == NOTIFY_BAD); |
| 1504 | register_cpu_notifier(&timers_nb); | 1496 | register_cpu_notifier(&timers_nb); |
| 1505 | open_softirq(TIMER_SOFTIRQ, run_timer_softirq, NULL); | 1497 | open_softirq(TIMER_SOFTIRQ, run_timer_softirq); |
| 1506 | } | 1498 | } |
| 1507 | 1499 | ||
| 1508 | /** | 1500 | /** |
