[linux-yocto] [PATCH 3/3] [kernel-cache] smp: Separate smp into 32 and 64 bit versions to avoid kernel warnings

Alejandro Hernandez alejandro.hernandez at linux.intel.com
Fri Jun 30 18:52:36 PDT 2017


When selecting SMP, some dependencies are needed, in the case
of a 32 bit build CONFIG_X86_BIGSMP=y is required, but adding that
to a 64 bit build causes warnings to be shown since X86_BIGSMP
requires X86_32 [n] itself, which can only be true for a 32 bit build.

This patch creates a 64 bit version of smp (smp_64), avoiding the
dependecy issues.

[YOCTO #11742]

Signed-off-by: Alejandro Hernandez <alejandro.hernandez at linux.intel.com>
---
 cfg/smp.scc    | 2 +-
 cfg/smp_64.cfg | 5 +++++
 cfg/smp_64.scc | 4 ++++
 cfg/x86_64.scc | 2 +-
 4 files changed, 11 insertions(+), 2 deletions(-)
 create mode 100644 cfg/smp_64.cfg
 create mode 100644 cfg/smp_64.scc

diff --git a/cfg/smp.scc b/cfg/smp.scc
index f697ce59..bf1e9bf6 100644
--- a/cfg/smp.scc
+++ b/cfg/smp.scc
@@ -1,4 +1,4 @@
-define KFEATURE_DESCRIPTION "Enable SMP"
+define KFEATURE_DESCRIPTION "Enable SMP for 32 bit builds"
 define KFEATURE_COMPATIBILITY all
 
 kconf hardware smp.cfg
diff --git a/cfg/smp_64.cfg b/cfg/smp_64.cfg
new file mode 100644
index 00000000..22047746
--- /dev/null
+++ b/cfg/smp_64.cfg
@@ -0,0 +1,5 @@
+CONFIG_SMP=y
+CONFIG_SCHED_SMT=y
+# Increase default NR_CPUS from 8 to 64 so that platform with
+# more than 8 processors can be all activated at boot time
+CONFIG_NR_CPUS=64
diff --git a/cfg/smp_64.scc b/cfg/smp_64.scc
new file mode 100644
index 00000000..e8b54e39
--- /dev/null
+++ b/cfg/smp_64.scc
@@ -0,0 +1,4 @@
+define KFEATURE_DESCRIPTION "Enable SMP for 64 bit builds"
+define KFEATURE_COMPATIBILITY all
+
+kconf hardware smp_64.cfg
diff --git a/cfg/x86_64.scc b/cfg/x86_64.scc
index e792ac3b..9e9af11b 100644
--- a/cfg/x86_64.scc
+++ b/cfg/x86_64.scc
@@ -1,4 +1,4 @@
 include x86_base.scc
-include smp.scc
+include smp_64.scc
 include timer/hz_1000.scc
 kconf hardware x86_64.cfg
-- 
2.12.0



More information about the linux-yocto mailing list