Merge tag 'v4.2' into p/abusse/merge_upgrade
[projects/modsched/linux.git] / kernel / cpu.c
index 5644ec5..01a2c66 100644 (file)
 #include <linux/irq.h>
 #include <trace/events/power.h>
 
+#ifdef CONFIG_MOD_SCHED
+    #include <fw_comm.h>
+#endif
+
 #include "smpboot.h"
 
 #ifdef CONFIG_SMP
@@ -572,6 +576,11 @@ int 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();
        return err;