diff options
| -rw-r--r-- | kernel/hrtimer.c | 2 | ||||
| -rw-r--r-- | kernel/sysctl.c | 12 | ||||
| -rw-r--r-- | kernel/timer.c | 10 |
3 files changed, 2 insertions, 22 deletions
diff --git a/kernel/hrtimer.c b/kernel/hrtimer.c index 421be5fe5cc7..543d9ca9b4f4 100644 --- a/kernel/hrtimer.c +++ b/kernel/hrtimer.c | |||
| @@ -1078,7 +1078,7 @@ ktime_t hrtimer_get_remaining(const struct hrtimer *timer) | |||
| 1078 | } | 1078 | } |
| 1079 | EXPORT_SYMBOL_GPL(hrtimer_get_remaining); | 1079 | EXPORT_SYMBOL_GPL(hrtimer_get_remaining); |
| 1080 | 1080 | ||
| 1081 | #if defined(CONFIG_NO_IDLE_HZ) || defined(CONFIG_NO_HZ) | 1081 | #ifdef CONFIG_NO_HZ |
| 1082 | /** | 1082 | /** |
| 1083 | * hrtimer_get_next_event - get the time until next expiry event | 1083 | * hrtimer_get_next_event - get the time until next expiry event |
| 1084 | * | 1084 | * |
diff --git a/kernel/sysctl.c b/kernel/sysctl.c index d7ffdc59816a..76426d930077 100644 --- a/kernel/sysctl.c +++ b/kernel/sysctl.c | |||
| @@ -131,8 +131,6 @@ extern int sysctl_userprocess_debug; | |||
| 131 | extern int spin_retry; | 131 | extern int spin_retry; |
| 132 | #endif | 132 | #endif |
| 133 | 133 | ||
| 134 | extern int sysctl_hz_timer; | ||
| 135 | |||
| 136 | #ifdef CONFIG_BSD_PROCESS_ACCT | 134 | #ifdef CONFIG_BSD_PROCESS_ACCT |
| 137 | extern int acct_parm[]; | 135 | extern int acct_parm[]; |
| 138 | #endif | 136 | #endif |
| @@ -562,16 +560,6 @@ static struct ctl_table kern_table[] = { | |||
| 562 | .proc_handler = &proc_dointvec, | 560 | .proc_handler = &proc_dointvec, |
| 563 | }, | 561 | }, |
| 564 | #endif | 562 | #endif |
| 565 | #ifdef CONFIG_NO_IDLE_HZ | ||
| 566 | { | ||
| 567 | .ctl_name = KERN_HZ_TIMER, | ||
| 568 | .procname = "hz_timer", | ||
| 569 | .data = &sysctl_hz_timer, | ||
| 570 | .maxlen = sizeof(int), | ||
| 571 | .mode = 0644, | ||
| 572 | .proc_handler = &proc_dointvec, | ||
| 573 | }, | ||
| 574 | #endif | ||
| 575 | { | 563 | { |
| 576 | .ctl_name = KERN_S390_USER_DEBUG_LOGGING, | 564 | .ctl_name = KERN_S390_USER_DEBUG_LOGGING, |
| 577 | .procname = "userprocess_debug", | 565 | .procname = "userprocess_debug", |
diff --git a/kernel/timer.c b/kernel/timer.c index ceacc6626572..ef3fa6906e8f 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 |
