aboutsummaryrefslogtreecommitdiffstats
path: root/include/linux/sched/idle.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/linux/sched/idle.h')
-rw-r--r--include/linux/sched/idle.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/include/linux/sched/idle.h b/include/linux/sched/idle.h
index 22873d276be6..d73d314d59c6 100644
--- a/include/linux/sched/idle.h
+++ b/include/linux/sched/idle.h
@@ -11,7 +11,11 @@ enum cpu_idle_type {
CPU_MAX_IDLE_TYPES
};
+#ifdef CONFIG_SMP
extern void wake_up_if_idle(int cpu);
+#else
+static inline void wake_up_if_idle(int cpu) { }
+#endif
/*
* Idle thread specific functions to determine the need_resched