keep kernel code clean if not running mod_shed
authorAnselm Busse <mail@anselm-busse.de>
Sun, 17 Jan 2016 17:41:06 +0000 (18:41 +0100)
committerAnselm Busse <mail@anselm-busse.de>
Sun, 17 Jan 2016 17:41:06 +0000 (18:41 +0100)
kernel/cpu.c

index bc97d47..67020fa 100644 (file)
@@ -20,7 +20,9 @@
 #include <linux/gfp.h>
 #include <linux/suspend.h>
 
-#include <fw_comm.h>
+#ifdef CONFIG_MOD_SCHED
+    #include <fw_comm.h>
+#endif
 
 #include "smpboot.h"
 
@@ -450,8 +452,10 @@ int __cpuinit cpu_up(unsigned int cpu)
 
        err = _cpu_up(cpu, 0);
 
+#ifdef CONFIG_MOD_SCHED
        if(!err)
                fw_notify(FW_CPU_ONLINE,&cpu);
+#endif
 
 out:
        cpu_maps_update_done();