Notification when CPU comes online
authorAnselm Busse <anselm.busse@tu-berlin.de>
Tue, 12 Jan 2016 13:08:25 +0000 (14:08 +0100)
committerAnselm Busse <anselm.busse@tu-berlin.de>
Tue, 12 Jan 2016 13:08:25 +0000 (14:08 +0100)
.cproject
Makefile
kernel/cpu.c

index 2edff13..cfeacc8 100644 (file)
--- a/.cproject
+++ b/.cproject
@@ -18,7 +18,7 @@
                                        <folderInfo id="0.530989751." name="/" resourcePath="">
                                                <toolChain id="org.eclipse.cdt.build.core.prefbase.toolchain.1546711813" name="No ToolChain" resourceTypeBasedDiscovery="false" superClass="org.eclipse.cdt.build.core.prefbase.toolchain">
                                                        <targetPlatform id="org.eclipse.cdt.build.core.prefbase.toolchain.1546711813.1010882407" name=""/>
-                                                       <builder arguments="root@snb-ep &quot;cd /media/repositories/dev/linux; CPU_CORES=1 make 2&gt;&amp;1 | sed 's/\/media\/repositories\///g'&quot;" command="ssh" id="org.eclipse.cdt.build.core.settings.default.builder.1969059649" incrementalBuildTarget="" keepEnvironmentInBuildfile="false" managedBuildOn="false" name="Gnu Make Builder" superClass="org.eclipse.cdt.build.core.settings.default.builder"/>
+                                                       <builder arguments="skylake &quot;cd dev/linux; CPU_CORES=1 make" command="ssh" id="org.eclipse.cdt.build.core.settings.default.builder.1969059649" incrementalBuildTarget="" keepEnvironmentInBuildfile="false" managedBuildOn="false" name="Gnu Make Builder" superClass="org.eclipse.cdt.build.core.settings.default.builder"/>
                                                        <tool id="org.eclipse.cdt.build.core.settings.holder.libs.39002464" name="holder for library settings" superClass="org.eclipse.cdt.build.core.settings.holder.libs"/>
                                                        <tool id="org.eclipse.cdt.build.core.settings.holder.768882220" name="Assembly" superClass="org.eclipse.cdt.build.core.settings.holder">
                                                                <inputType id="org.eclipse.cdt.build.core.settings.holder.inType.1166848993" languageId="org.eclipse.cdt.core.assembly" languageName="Assembly" sourceContentType="org.eclipse.cdt.core.asmSource" superClass="org.eclipse.cdt.build.core.settings.holder.inType"/>
@@ -35,6 +35,7 @@
                                                                <option id="org.eclipse.cdt.build.core.settings.holder.symbols.291819478" name="Symbols" superClass="org.eclipse.cdt.build.core.settings.holder.symbols" valueType="definedSymbols">
                                                                        <listOptionValue builtIn="false" value="__KERNEL__=1"/>
                                                                        <listOptionValue builtIn="false" value="CONFIG_SMP=1"/>
+                                                                       <listOptionValue builtIn="false" value="FW_OS_LINUX=1"/>
                                                                </option>
                                                                <inputType id="org.eclipse.cdt.build.core.settings.holder.inType.145504549" languageId="org.eclipse.cdt.core.gcc" languageName="GNU C" sourceContentType="org.eclipse.cdt.core.cSource,org.eclipse.cdt.core.cHeader" superClass="org.eclipse.cdt.build.core.settings.holder.inType"/>
                                                        </tool>
@@ -74,4 +75,5 @@
                        <resource resourceType="PROJECT" workspacePath="/linux"/>
                </configuration>
        </storageModule>
+       <storageModule moduleId="org.eclipse.cdt.internal.ui.text.commentOwnerProjectMappings"/>
 </cproject>
index 6115b2b..3b21214 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -371,7 +371,6 @@ KBUILD_CPPFLAGS := -D__KERNEL__
 
 KBUILD_CFLAGS   := -Wall -Wundef -Wstrict-prototypes -Wno-trigraphs \
                   -fno-strict-aliasing -fno-common \
-                  -Werror-implicit-function-declaration \
                   -Wno-format-security \
                   -fno-delete-null-pointer-checks
 KBUILD_AFLAGS_KERNEL :=
index b5e4ab2..bc97d47 100644 (file)
@@ -20,6 +20,8 @@
 #include <linux/gfp.h>
 #include <linux/suspend.h>
 
+#include <fw_comm.h>
+
 #include "smpboot.h"
 
 #ifdef CONFIG_SMP
@@ -448,6 +450,9 @@ int __cpuinit cpu_up(unsigned int cpu)
 
        err = _cpu_up(cpu, 0);
 
+       if(!err)
+               fw_notify(FW_CPU_ONLINE,&cpu);
+
 out:
        cpu_maps_update_done();
        return err;