diff options
Diffstat (limited to 'kernel/sched.c')
-rw-r--r-- | kernel/sched.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/kernel/sched.c b/kernel/sched.c index 02a5eeedcb94..f3faec52c5ab 100644 --- a/kernel/sched.c +++ b/kernel/sched.c | |||
@@ -1130,6 +1130,7 @@ static enum hrtimer_restart hrtick(struct hrtimer *timer) | |||
1130 | return HRTIMER_NORESTART; | 1130 | return HRTIMER_NORESTART; |
1131 | } | 1131 | } |
1132 | 1132 | ||
1133 | #ifdef CONFIG_SMP | ||
1133 | static void hotplug_hrtick_disable(int cpu) | 1134 | static void hotplug_hrtick_disable(int cpu) |
1134 | { | 1135 | { |
1135 | struct rq *rq = cpu_rq(cpu); | 1136 | struct rq *rq = cpu_rq(cpu); |
@@ -1185,6 +1186,7 @@ static void init_hrtick(void) | |||
1185 | { | 1186 | { |
1186 | hotcpu_notifier(hotplug_hrtick, 0); | 1187 | hotcpu_notifier(hotplug_hrtick, 0); |
1187 | } | 1188 | } |
1189 | #endif /* CONFIG_SMP */ | ||
1188 | 1190 | ||
1189 | static void init_rq_hrtick(struct rq *rq) | 1191 | static void init_rq_hrtick(struct rq *rq) |
1190 | { | 1192 | { |