cpu: Mark cpu_possible_mask as __ro_after_init
cpu_possible_mask is by definition "cpus which could be hotplugged without reboot". It's a property which is fixed after kernel enumerates the hardware configuration. Signed-off-by: Alexey Dobriyan <adobriyan@gmail.com> Signed-off-by: Thomas Gleixner <tglx@linutronix.de> Link: https://lore.kernel.org/r/41cd78af-92a3-4f23-8c7a-4316a04a66d8@p183
This commit is contained in:
parent
effe6d278e
commit
da92df490e
1 changed files with 2 additions and 2 deletions
|
@ -3106,10 +3106,10 @@ const DECLARE_BITMAP(cpu_all_bits, NR_CPUS) = CPU_BITS_ALL;
|
||||||
EXPORT_SYMBOL(cpu_all_bits);
|
EXPORT_SYMBOL(cpu_all_bits);
|
||||||
|
|
||||||
#ifdef CONFIG_INIT_ALL_POSSIBLE
|
#ifdef CONFIG_INIT_ALL_POSSIBLE
|
||||||
struct cpumask __cpu_possible_mask __read_mostly
|
struct cpumask __cpu_possible_mask __ro_after_init;
|
||||||
= {CPU_BITS_ALL};
|
= {CPU_BITS_ALL};
|
||||||
#else
|
#else
|
||||||
struct cpumask __cpu_possible_mask __read_mostly;
|
struct cpumask __cpu_possible_mask __ro_after_init;
|
||||||
#endif
|
#endif
|
||||||
EXPORT_SYMBOL(__cpu_possible_mask);
|
EXPORT_SYMBOL(__cpu_possible_mask);
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue