aboutsummaryrefslogtreecommitdiffstats
path: root/net/unix/af_unix.c
diff options
context:
space:
mode:
authorJacky Bai <[email protected]>2025-03-07 14:55:47 +0000
committerRafael J. Wysocki <[email protected]>2025-03-12 20:31:59 +0000
commit68cb0139fec8e05b93978dc0ef1bc8df90a86419 (patch)
tree5229dbf1e07985d2926effc2d376feb71f8ddab7 /net/unix/af_unix.c
parentMerge back earlier cpuidle material for 6.15 (diff)
downloadkernel-68cb0139fec8e05b93978dc0ef1bc8df90a86419.tar.gz
kernel-68cb0139fec8e05b93978dc0ef1bc8df90a86419.zip
cpuidle: Init cpuidle only for present CPUs
for_each_possible_cpu() is currently used to initialize cpuidle in below cpuidle drivers: drivers/cpuidle/cpuidle-arm.c drivers/cpuidle/cpuidle-big_little.c drivers/cpuidle/cpuidle-psci.c drivers/cpuidle/cpuidle-qcom-spm.c drivers/cpuidle/cpuidle-riscv-sbi.c However, in cpu_dev_register_generic(), for_each_present_cpu() is used to register CPU devices which means the CPU devices are only registered for present CPUs and not all possible CPUs. With nosmp or maxcpus=0, only the boot CPU is present, lead to the failure: | Failed to register cpuidle device for cpu1 Then rollback to cancel all CPUs' cpuidle registration. Change for_each_possible_cpu() to for_each_present_cpu() in the above cpuidle drivers to ensure it only registers cpuidle devices for CPUs that are actually present. Fixes: b0c69e1214bc ("drivers: base: Use present CPUs in GENERIC_CPU_DEVICES") Reviewed-by: Dhruva Gole <[email protected]> Reviewed-by: Sudeep Holla <[email protected]> Tested-by: Yuanjie Yang <[email protected]> Signed-off-by: Jacky Bai <[email protected]> Reviewed-by: Ulf Hansson <[email protected]> Link: https://patch.msgid.link/[email protected] Signed-off-by: Rafael J. Wysocki <[email protected]>
Diffstat (limited to 'net/unix/af_unix.c')
0 files changed, 0 insertions, 0 deletions