Commit 7a371237 authored by Yury Norov's avatar Yury Norov Committed by Lu Jialin
Browse files

lib/cpumask: delete misleading comment

mainline inclusion
from mainline-v6.1-rc1
commit 7102b3bb
category: cleanup
bugzilla: https://gitee.com/openeuler/kernel/issues/I8KQBZ
CVE: NA

Reference: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=7102b3bb070fdf4580a05cbfc5ad3c0691dc4bf9



--------------------------------

The comment says that HOTPLUG config option enables all cpus in
cpu_possible_mask up to NR_CPUs. This is wrong. Even if HOTPLUG is
enabled, the mask is populated on boot with respect to ACPI/DT records.

Signed-off-by: default avatarYury Norov <yury.norov@gmail.com>
Signed-off-by: default avatarZheng Zucheng <zhengzucheng@huawei.com>
parent ad2143d4
Loading
Loading
Loading
Loading
+0 −4
Original line number Diff line number Diff line
@@ -70,10 +70,6 @@ static inline void set_nr_cpu_ids(unsigned int nr)
 *  cpu_online_mask is the dynamic subset of cpu_present_mask,
 *  indicating those CPUs available for scheduling.
 *
 *  If HOTPLUG is enabled, then cpu_possible_mask is forced to have
 *  all NR_CPUS bits set, otherwise it is just the set of CPUs that
 *  ACPI reports present at boot.
 *
 *  If HOTPLUG is enabled, then cpu_present_mask varies dynamically,
 *  depending on what ACPI reports as currently plugged in, otherwise
 *  cpu_present_mask is just a copy of cpu_possible_mask.