author: Sebastian Andrzej Siewior <bigeasy@linutronix.de> 2018-07-26 15:03:16 +0200
committer: Minda Chen <minda.chen@starfivetech.com> 2023-11-06 19:24:38 +0800
commit: fcd50084c68e387744498eab2fdb37e8c946ba98
parent: 7fde8a8ae18450b5397dea7a1e74e009d2d258af
Commit Summary:
Diffstat:
1 file changed, 1 insertion, 1 deletion
diff --git a/drivers/firmware/efi/efi.c b/drivers/firmware/efi/efi.c
index 847f33ffc4ae..39031cfcb6b9 100644
--- a/drivers/firmware/efi/efi.c
+++ b/drivers/firmware/efi/efi.c
@@ -66,7 +66,7 @@ struct mm_struct efi_mm = {
struct workqueue_struct *efi_rts_wq;
-static bool disable_runtime;
+static bool disable_runtime = IS_ENABLED(CONFIG_PREEMPT_RT);
static int __init setup_noefi(char *arg)
{
disable_runtime = true;