[PATCH] x86/acpi: remove unused ACPI_FLUSH_CPU_CACHE macro

From: Ashwin Gundarapu

Date: Sun Jun 14 2026 - 10:30:42 EST


The ACPI_FLUSH_CPU_CACHE macro is unused in arch/x86/. Remove it.

Signed-off-by: Ashwin Gundarapu <linuxuser509@xxxxxxxxxxx>
---
arch/x86/include/asm/acenv.h | 5 -----
1 file changed, 5 deletions(-)

diff --git a/arch/x86/include/asm/acenv.h b/arch/x86/include/asm/acenv.h
index d937c55e717e..db29f77352d3 100644
--- a/arch/x86/include/asm/acenv.h
+++ b/arch/x86/include/asm/acenv.h
@@ -21,11 +21,6 @@
* Changing sleep state in a virtual machine doesn't affect the host system
* sleep state and cannot lead to data loss.
*/
-#define ACPI_FLUSH_CPU_CACHE() \
-do { \
- if (!cpu_feature_enabled(X86_FEATURE_HYPERVISOR)) \
- wbinvd(); \
-} while (0)

int __acpi_acquire_global_lock(unsigned int *lock);
int __acpi_release_global_lock(unsigned int *lock);
--
2.47.3