diff options
| author | Sebastian Andrzej Siewior <bigeasy@linutronix.de> | 2026-02-27 20:01:03 +0300 |
|---|---|---|
| committer | Tejun Heo <tj@kernel.org> | 2026-02-27 21:21:37 +0300 |
| commit | 0bd96853ba723bc3b174e0158a4499758e3296aa (patch) | |
| tree | 284899104902044460ec7a4a9b37bd784344bc3e | |
| parent | a4aa8d94f24317338cf6f62eb3267ad99a2ff7f7 (diff) | |
| download | linux-0bd96853ba723bc3b174e0158a4499758e3296aa.tar.xz | |
efi: Allow to expose the workqueue via sysfs
Exposing the efi_rts_wq workqueue via sysfs provides an easy mechanism
to restrict EFI firmware invocation to certain CPU(s).
This can be used to restrict EFI invocations to specific CPUs while
allowing other workqueue to use the remaning CPUs.
Expose the workqueue via sysfs. Change the name to efi_runtime which is
what will be visible under sysfs.
Signed-off-by: Sebastian Andrzej Siewior <bigeasy@linutronix.de>
Acked-by: Ard Biesheuvel <ardb@kernel.org>
Signed-off-by: Tejun Heo <tj@kernel.org>
| -rw-r--r-- | drivers/firmware/efi/efi.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/firmware/efi/efi.c b/drivers/firmware/efi/efi.c index b2fb92a4bbd1..3dab284a7754 100644 --- a/drivers/firmware/efi/efi.c +++ b/drivers/firmware/efi/efi.c @@ -423,7 +423,7 @@ static int __init efisubsys_init(void) * ordered workqueue (which creates only one execution context) * should suffice for all our needs. */ - efi_rts_wq = alloc_ordered_workqueue("efi_rts_wq", 0); + efi_rts_wq = alloc_ordered_workqueue("efi_runtime", WQ_SYSFS); if (!efi_rts_wq) { pr_err("Creating efi_rts_wq failed, EFI runtime services disabled.\n"); clear_bit(EFI_RUNTIME_SERVICES, &efi.flags); |
