[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-Id: <1707982910-27680-2-git-send-email-mihai.carabas@oracle.com>
Date: Thu, 15 Feb 2024 09:41:43 +0200
From: Mihai Carabas <mihai.carabas@...cle.com>
To: linux-arm-kernel@...ts.infradead.org
Cc: kvm@...r.kernel.org, linux-pm@...r.kernel.org,
linux-kernel@...r.kernel.org, catalin.marinas@....com, will@...nel.org,
tglx@...utronix.de, mingo@...hat.com, bp@...en8.de, x86@...nel.org,
hpa@...or.com, pbonzini@...hat.com, wanpengli@...cent.com,
vkuznets@...hat.com, rafael@...nel.org, daniel.lezcano@...aro.org,
akpm@...ux-foundation.org, pmladek@...e.com, peterz@...radead.org,
dianders@...omium.org, npiggin@...il.com, rick.p.edgecombe@...el.com,
joao.m.martins@...cle.com, juerg.haefliger@...onical.com,
mic@...ikod.net, mihai.carabas@...cle.com, arnd@...db.de,
ankur.a.arora@...cle.com
Subject: [PATCH v4 1/8] x86: Move ARCH_HAS_CPU_RELAX to arch
From: Joao Martins <joao.m.martins@...cle.com>
ARM64 is going to use it for haltpoll support (for poll-state)
so move the definition to be arch-agnostic and allow architectures
to override it.
Signed-off-by: Joao Martins <joao.m.martins@...cle.com>
Signed-off-by: Mihai Carabas <mihai.carabas@...cle.com>
---
arch/Kconfig | 3 +++
arch/x86/Kconfig | 4 +---
2 files changed, 4 insertions(+), 3 deletions(-)
diff --git a/arch/Kconfig b/arch/Kconfig
index a5af0edd3eb8..5b2e8a88853c 100644
--- a/arch/Kconfig
+++ b/arch/Kconfig
@@ -1363,6 +1363,9 @@ config RELR
config ARCH_HAS_MEM_ENCRYPT
bool
+config ARCH_HAS_CPU_RELAX
+ bool
+
config ARCH_HAS_CC_PLATFORM
bool
diff --git a/arch/x86/Kconfig b/arch/x86/Kconfig
index 5edec175b9bf..8c4312133832 100644
--- a/arch/x86/Kconfig
+++ b/arch/x86/Kconfig
@@ -73,6 +73,7 @@ config X86
select ARCH_HAS_CPU_CACHE_INVALIDATE_MEMREGION
select ARCH_HAS_CPU_FINALIZE_INIT
select ARCH_HAS_CPU_PASID if IOMMU_SVA
+ select ARCH_HAS_CPU_RELAX
select ARCH_HAS_CURRENT_STACK_POINTER
select ARCH_HAS_DEBUG_VIRTUAL
select ARCH_HAS_DEBUG_VM_PGTABLE if !X86_PAE
@@ -367,9 +368,6 @@ config ARCH_MAY_HAVE_PC_FDC
config GENERIC_CALIBRATE_DELAY
def_bool y
-config ARCH_HAS_CPU_RELAX
- def_bool y
-
config ARCH_HIBERNATION_POSSIBLE
def_bool y
--
1.8.3.1
Powered by blists - more mailing lists