[PATCH] LoongArch: Init acpi_gbl_use_global_lock to false

Huacai Chen posted 1 patch 2 days, 14 hours ago
arch/loongarch/kernel/setup.c | 1 +
1 file changed, 1 insertion(+)
[PATCH] LoongArch: Init acpi_gbl_use_global_lock to false
Posted by Huacai Chen 2 days, 14 hours ago
Init acpi_gbl_use_global_lock to false, in order to void error messages
during boot phase:

 ACPI Error: Could not enable GlobalLock event (20240827/evxfevnt-182)
 ACPI Error: No response from Global Lock hardware, disabling lock (20240827/evglock-59)

Fixes: 628c3bb40e9a8cefc0a6 ("LoongArch: Add boot and setup routines")
Signed-off-by: Huacai Chen <chenhuacai@loongson.cn>
---
Note: Depend on feb8ae81b2378b75 ("ACPICA: Allow to skip Global Lock initialization").

 arch/loongarch/kernel/setup.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/arch/loongarch/kernel/setup.c b/arch/loongarch/kernel/setup.c
index 075b79b2c1d3..69c17d162fff 100644
--- a/arch/loongarch/kernel/setup.c
+++ b/arch/loongarch/kernel/setup.c
@@ -355,6 +355,7 @@ void __init platform_init(void)
 
 #ifdef CONFIG_ACPI
 	acpi_table_upgrade();
+	acpi_gbl_use_global_lock = false;
 	acpi_gbl_use_default_register_widths = false;
 	acpi_boot_table_init();
 #endif
-- 
2.47.3