It is not available on other architectures.
Signed-off-by: Mikko Rapeli <[email protected]>
---
features/profiling/profiling.cfg | 1 -
features/profiling/profiling.scc | 4 ++++
features/profiling/profiling_x86_64.cfg | 2 ++
3 files changed, 6 insertions(+), 1 deletion(-)
create mode 100644 features/profiling/profiling_x86_64.cfg
diff --git a/features/profiling/profiling.cfg b/features/profiling/profiling.cfg
index 9728b8898162..95912c8e3947 100644
--- a/features/profiling/profiling.cfg
+++ b/features/profiling/profiling.cfg
@@ -2,4 +2,3 @@
# for oprofile and powertop
CONFIG_PROFILING=y
CONFIG_FRAME_POINTER=y
-CONFIG_X86_LOCAL_APIC=y
diff --git a/features/profiling/profiling.scc b/features/profiling/profiling.scc
index 3bced1a7e3ca..8d3a31fb4234 100644
--- a/features/profiling/profiling.scc
+++ b/features/profiling/profiling.scc
@@ -4,4 +4,8 @@ define KFEATURE_COMPATIBILITY board
kconf non-hardware profiling.cfg
+if [ "${KARCH}" = "x86_64" ]; then
+ kconf hardware profiling_x86_64.cfg
+fi
+
include features/debug/debug-kernel.scc
diff --git a/features/profiling/profiling_x86_64.cfg
b/features/profiling/profiling_x86_64.cfg
new file mode 100644
index 000000000000..8806afff8c27
--- /dev/null
+++ b/features/profiling/profiling_x86_64.cfg
@@ -0,0 +1,2 @@
+# SPDX-License-Identifier: MIT
+CONFIG_X86_LOCAL_APIC=y
--
2.34.1
-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#16151):
https://lists.yoctoproject.org/g/linux-yocto/message/16151
Mute This Topic: https://lists.yoctoproject.org/mt/117176770/21656
Group Owner: [email protected]
Unsubscribe: https://lists.yoctoproject.org/g/linux-yocto/unsub
[[email protected]]
-=-=-=-=-=-=-=-=-=-=-=-