sched: dynticks idle load balancing
[firefly-linux-kernel-4.4.55.git] / include / linux / sched.h
index 6312521df2c145d96ca6a847f1004078fadc6f59..15ab3e039535eb7eb710f625b6fe58a699122464 100644 (file)
@@ -194,6 +194,14 @@ extern void sched_init_smp(void);
 extern void init_idle(struct task_struct *idle, int cpu);
 
 extern cpumask_t nohz_cpu_mask;
+#if defined(CONFIG_SMP) && defined(CONFIG_NO_HZ)
+extern int select_nohz_load_balancer(int cpu);
+#else
+static inline int select_nohz_load_balancer(int cpu)
+{
+       return 0;
+}
+#endif
 
 /*
  * Only dump TASK_* tasks. (0 for all tasks)