aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/fpga/zynq-fpga.c
diff options
context:
space:
mode:
authorSandeep Dhavale <[email protected]>2025-05-06 22:57:41 +0000
committerGao Xiang <[email protected]>2025-05-15 22:11:22 +0000
commit12bf25d1659b1ec55e44fad2485155707062df79 (patch)
tree08df7a68db711931f243b518295b134443a9ec2c /drivers/fpga/zynq-fpga.c
parenterofs: refine readahead tracepoint (diff)
downloadkernel-12bf25d1659b1ec55e44fad2485155707062df79.tar.gz
kernel-12bf25d1659b1ec55e44fad2485155707062df79.zip
erofs: lazily initialize per-CPU workers and CPU hotplug hooks
Currently, when EROFS is built with per-CPU workers, the workers are started and CPU hotplug hooks are registered during module initialization. This leads to unnecessary worker start/stop cycles during CPU hotplug events, particularly on Android devices that frequently suspend and resume. This change defers the initialization of per-CPU workers and the registration of CPU hotplug hooks until the first EROFS mount. This ensures that these resources are only allocated and managed when EROFS is actually in use. The tear down of per-CPU workers and unregistration of CPU hotplug hooks still occurs during z_erofs_exit_subsystem(), but only if they were initialized. Signed-off-by: Sandeep Dhavale <[email protected]> Reviewed-by: Gao Xiang <[email protected]> Reviewed-by: Chao Yu <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Gao Xiang <[email protected]>
Diffstat (limited to 'drivers/fpga/zynq-fpga.c')
0 files changed, 0 insertions, 0 deletions