Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

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>

authored by

Sebastian Andrzej Siewior and committed by
Tejun Heo
0bd96853 a4aa8d94

+1 -1
+1 -1
drivers/firmware/efi/efi.c
··· 423 423 * ordered workqueue (which creates only one execution context) 424 424 * should suffice for all our needs. 425 425 */ 426 - efi_rts_wq = alloc_ordered_workqueue("efi_rts_wq", 0); 426 + efi_rts_wq = alloc_ordered_workqueue("efi_runtime", WQ_SYSFS); 427 427 if (!efi_rts_wq) { 428 428 pr_err("Creating efi_rts_wq failed, EFI runtime services disabled.\n"); 429 429 clear_bit(EFI_RUNTIME_SERVICES, &efi.flags);