diff options
| -rw-r--r-- | Documentation/cgroups/cpusets.txt | 2 | ||||
| -rw-r--r-- | Documentation/cpu-hotplug.txt | 22 | ||||
| -rw-r--r-- | arch/alpha/kernel/smp.c | 2 | ||||
| -rw-r--r-- | arch/ia64/kernel/acpi.c | 2 | ||||
| -rw-r--r-- | arch/mips/cavium-octeon/smp.c | 2 | ||||
| -rw-r--r-- | arch/mips/pmc-sierra/yosemite/smp.c | 2 | ||||
| -rw-r--r-- | arch/mips/sibyte/bcm1480/smp.c | 2 | ||||
| -rw-r--r-- | arch/tile/kernel/setup.c | 2 | ||||
| -rw-r--r-- | arch/x86/xen/enlighten.c | 2 | ||||
| -rw-r--r-- | init/Kconfig | 4 | ||||
| -rw-r--r-- | kernel/cpuset.c | 10 |
11 files changed, 26 insertions, 26 deletions
diff --git a/Documentation/cgroups/cpusets.txt b/Documentation/cgroups/cpusets.txt index 5c51ed406d1d..cefd3d8bbd11 100644 --- a/Documentation/cgroups/cpusets.txt +++ b/Documentation/cgroups/cpusets.txt | |||
| @@ -217,7 +217,7 @@ and name space for cpusets, with a minimum of additional kernel code. | |||
| 217 | 217 | ||
| 218 | The cpus and mems files in the root (top_cpuset) cpuset are | 218 | The cpus and mems files in the root (top_cpuset) cpuset are |
| 219 | read-only. The cpus file automatically tracks the value of | 219 | read-only. The cpus file automatically tracks the value of |
| 220 | cpu_online_map using a CPU hotplug notifier, and the mems file | 220 | cpu_online_mask using a CPU hotplug notifier, and the mems file |
| 221 | automatically tracks the value of node_states[N_HIGH_MEMORY]--i.e., | 221 | automatically tracks the value of node_states[N_HIGH_MEMORY]--i.e., |
| 222 | nodes with memory--using the cpuset_track_online_nodes() hook. | 222 | nodes with memory--using the cpuset_track_online_nodes() hook. |
| 223 | 223 | ||
diff --git a/Documentation/cpu-hotplug.txt b/Documentation/cpu-hotplug.txt index a20bfd415e41..66ef8f35613d 100644 --- a/Documentation/cpu-hotplug.txt +++ b/Documentation/cpu-hotplug.txt | |||
| @@ -47,7 +47,7 @@ maxcpus=n Restrict boot time cpus to n. Say if you have 4 cpus, using | |||
| 47 | other cpus later online, read FAQ's for more info. | 47 | other cpus later online, read FAQ's for more info. |
| 48 | 48 | ||
| 49 | additional_cpus=n (*) Use this to limit hotpluggable cpus. This option sets | 49 | additional_cpus=n (*) Use this to limit hotpluggable cpus. This option sets |
| 50 | cpu_possible_map = cpu_present_map + additional_cpus | 50 | cpu_possible_mask = cpu_present_mask + additional_cpus |
| 51 | 51 | ||
| 52 | cede_offline={"off","on"} Use this option to disable/enable putting offlined | 52 | cede_offline={"off","on"} Use this option to disable/enable putting offlined |
| 53 | processors to an extended H_CEDE state on | 53 | processors to an extended H_CEDE state on |
| @@ -64,11 +64,11 @@ should only rely on this to count the # of cpus, but *MUST* not rely | |||
| 64 | on the apicid values in those tables for disabled apics. In the event | 64 | on the apicid values in those tables for disabled apics. In the event |
| 65 | BIOS doesn't mark such hot-pluggable cpus as disabled entries, one could | 65 | BIOS doesn't mark such hot-pluggable cpus as disabled entries, one could |
| 66 | use this parameter "additional_cpus=x" to represent those cpus in the | 66 | use this parameter "additional_cpus=x" to represent those cpus in the |
| 67 | cpu_possible_map. | 67 | cpu_possible_mask. |
| 68 | 68 | ||
| 69 | possible_cpus=n [s390,x86_64] use this to set hotpluggable cpus. | 69 | possible_cpus=n [s390,x86_64] use this to set hotpluggable cpus. |
| 70 | This option sets possible_cpus bits in | 70 | This option sets possible_cpus bits in |
| 71 | cpu_possible_map. Thus keeping the numbers of bits set | 71 | cpu_possible_mask. Thus keeping the numbers of bits set |
| 72 | constant even if the machine gets rebooted. | 72 | constant even if the machine gets rebooted. |
| 73 | 73 | ||
| 74 | CPU maps and such | 74 | CPU maps and such |
| @@ -76,7 +76,7 @@ CPU maps and such | |||
| 76 | [More on cpumaps and primitive to manipulate, please check | 76 | [More on cpumaps and primitive to manipulate, please check |
| 77 | include/linux/cpumask.h that has more descriptive text.] | 77 | include/linux/cpumask.h that has more descriptive text.] |
| 78 | 78 | ||
| 79 | cpu_possible_map: Bitmap of possible CPUs that can ever be available in the | 79 | cpu_possible_mask: Bitmap of possible CPUs that can ever be available in the |
| 80 | system. This is used to allocate some boot time memory for per_cpu variables | 80 | system. This is used to allocate some boot time memory for per_cpu variables |
| 81 | that aren't designed to grow/shrink as CPUs are made available or removed. | 81 | that aren't designed to grow/shrink as CPUs are made available or removed. |
| 82 | Once set during boot time discovery phase, the map is static, i.e no bits | 82 | Once set during boot time discovery phase, the map is static, i.e no bits |
| @@ -84,13 +84,13 @@ are added or removed anytime. Trimming it accurately for your system needs | |||
| 84 | upfront can save some boot time memory. See below for how we use heuristics | 84 | upfront can save some boot time memory. See below for how we use heuristics |
| 85 | in x86_64 case to keep this under check. | 85 | in x86_64 case to keep this under check. |
| 86 | 86 | ||
| 87 | cpu_online_map: Bitmap of all CPUs currently online. Its set in __cpu_up() | 87 | cpu_online_mask: Bitmap of all CPUs currently online. Its set in __cpu_up() |
| 88 | after a cpu is available for kernel scheduling and ready to receive | 88 | after a cpu is available for kernel scheduling and ready to receive |
| 89 | interrupts from devices. Its cleared when a cpu is brought down using | 89 | interrupts from devices. Its cleared when a cpu is brought down using |
| 90 | __cpu_disable(), before which all OS services including interrupts are | 90 | __cpu_disable(), before which all OS services including interrupts are |
| 91 | migrated to another target CPU. | 91 | migrated to another target CPU. |
| 92 | 92 | ||
| 93 | cpu_present_map: Bitmap of CPUs currently present in the system. Not all | 93 | cpu_present_mask: Bitmap of CPUs currently present in the system. Not all |
| 94 | of them may be online. When physical hotplug is processed by the relevant | 94 | of them may be online. When physical hotplug is processed by the relevant |
| 95 | subsystem (e.g ACPI) can change and new bit either be added or removed | 95 | subsystem (e.g ACPI) can change and new bit either be added or removed |
| 96 | from the map depending on the event is hot-add/hot-remove. There are currently | 96 | from the map depending on the event is hot-add/hot-remove. There are currently |
| @@ -99,22 +99,22 @@ at which time hotplug is disabled. | |||
| 99 | 99 | ||
| 100 | You really dont need to manipulate any of the system cpu maps. They should | 100 | You really dont need to manipulate any of the system cpu maps. They should |
| 101 | be read-only for most use. When setting up per-cpu resources almost always use | 101 | be read-only for most use. When setting up per-cpu resources almost always use |
| 102 | cpu_possible_map/for_each_possible_cpu() to iterate. | 102 | cpu_possible_mask/for_each_possible_cpu() to iterate. |
| 103 | 103 | ||
| 104 | Never use anything other than cpumask_t to represent bitmap of CPUs. | 104 | Never use anything other than cpumask_t to represent bitmap of CPUs. |
| 105 | 105 | ||
| 106 | #include <linux/cpumask.h> | 106 | #include <linux/cpumask.h> |
| 107 | 107 | ||
| 108 | for_each_possible_cpu - Iterate over cpu_possible_map | 108 | for_each_possible_cpu - Iterate over cpu_possible_mask |
| 109 | for_each_online_cpu - Iterate over cpu_online_map | 109 | for_each_online_cpu - Iterate over cpu_online_mask |
| 110 | for_each_present_cpu - Iterate over cpu_present_map | 110 | for_each_present_cpu - Iterate over cpu_present_mask |
| 111 | for_each_cpu_mask(x,mask) - Iterate over some random collection of cpu mask. | 111 | for_each_cpu_mask(x,mask) - Iterate over some random collection of cpu mask. |
| 112 | 112 | ||
| 113 | #include <linux/cpu.h> | 113 | #include <linux/cpu.h> |
| 114 | get_online_cpus() and put_online_cpus(): | 114 | get_online_cpus() and put_online_cpus(): |
| 115 | 115 | ||
| 116 | The above calls are used to inhibit cpu hotplug operations. While the | 116 | The above calls are used to inhibit cpu hotplug operations. While the |
| 117 | cpu_hotplug.refcount is non zero, the cpu_online_map will not change. | 117 | cpu_hotplug.refcount is non zero, the cpu_online_mask will not change. |
| 118 | If you merely need to avoid cpus going away, you could also use | 118 | If you merely need to avoid cpus going away, you could also use |
| 119 | preempt_disable() and preempt_enable() for those sections. | 119 | preempt_disable() and preempt_enable() for those sections. |
| 120 | Just remember the critical section cannot call any | 120 | Just remember the critical section cannot call any |
diff --git a/arch/alpha/kernel/smp.c b/arch/alpha/kernel/smp.c index 4087a569b43b..50d438db1f6b 100644 --- a/arch/alpha/kernel/smp.c +++ b/arch/alpha/kernel/smp.c | |||
| @@ -450,7 +450,7 @@ setup_smp(void) | |||
| 450 | smp_num_probed = 1; | 450 | smp_num_probed = 1; |
| 451 | } | 451 | } |
| 452 | 452 | ||
| 453 | printk(KERN_INFO "SMP: %d CPUs probed -- cpu_present_map = %lx\n", | 453 | printk(KERN_INFO "SMP: %d CPUs probed -- cpu_present_mask = %lx\n", |
| 454 | smp_num_probed, cpumask_bits(cpu_present_mask)[0]); | 454 | smp_num_probed, cpumask_bits(cpu_present_mask)[0]); |
| 455 | } | 455 | } |
| 456 | 456 | ||
diff --git a/arch/ia64/kernel/acpi.c b/arch/ia64/kernel/acpi.c index ac795d311f44..6f38b6120d96 100644 --- a/arch/ia64/kernel/acpi.c +++ b/arch/ia64/kernel/acpi.c | |||
| @@ -839,7 +839,7 @@ static __init int setup_additional_cpus(char *s) | |||
| 839 | early_param("additional_cpus", setup_additional_cpus); | 839 | early_param("additional_cpus", setup_additional_cpus); |
| 840 | 840 | ||
| 841 | /* | 841 | /* |
| 842 | * cpu_possible_map should be static, it cannot change as CPUs | 842 | * cpu_possible_mask should be static, it cannot change as CPUs |
| 843 | * are onlined, or offlined. The reason is per-cpu data-structures | 843 | * are onlined, or offlined. The reason is per-cpu data-structures |
| 844 | * are allocated by some modules at init time, and dont expect to | 844 | * are allocated by some modules at init time, and dont expect to |
| 845 | * do this dynamically on cpu arrival/departure. | 845 | * do this dynamically on cpu arrival/departure. |
diff --git a/arch/mips/cavium-octeon/smp.c b/arch/mips/cavium-octeon/smp.c index ef56d8a0215f..97e7ce9b50ed 100644 --- a/arch/mips/cavium-octeon/smp.c +++ b/arch/mips/cavium-octeon/smp.c | |||
| @@ -78,7 +78,7 @@ static inline void octeon_send_ipi_mask(const struct cpumask *mask, | |||
| 78 | } | 78 | } |
| 79 | 79 | ||
| 80 | /** | 80 | /** |
| 81 | * Detect available CPUs, populate cpu_possible_map | 81 | * Detect available CPUs, populate cpu_possible_mask |
| 82 | */ | 82 | */ |
| 83 | static void octeon_smp_hotplug_setup(void) | 83 | static void octeon_smp_hotplug_setup(void) |
| 84 | { | 84 | { |
diff --git a/arch/mips/pmc-sierra/yosemite/smp.c b/arch/mips/pmc-sierra/yosemite/smp.c index 00a0d2e90d04..b71fae231049 100644 --- a/arch/mips/pmc-sierra/yosemite/smp.c +++ b/arch/mips/pmc-sierra/yosemite/smp.c | |||
| @@ -146,7 +146,7 @@ static void __cpuinit yos_boot_secondary(int cpu, struct task_struct *idle) | |||
| 146 | } | 146 | } |
| 147 | 147 | ||
| 148 | /* | 148 | /* |
| 149 | * Detect available CPUs, populate cpu_possible_map before smp_init | 149 | * Detect available CPUs, populate cpu_possible_mask before smp_init |
| 150 | * | 150 | * |
| 151 | * We don't want to start the secondary CPU yet nor do we have a nice probing | 151 | * We don't want to start the secondary CPU yet nor do we have a nice probing |
| 152 | * feature in PMON so we just assume presence of the secondary core. | 152 | * feature in PMON so we just assume presence of the secondary core. |
diff --git a/arch/mips/sibyte/bcm1480/smp.c b/arch/mips/sibyte/bcm1480/smp.c index 63d2211e6167..de88e22694a0 100644 --- a/arch/mips/sibyte/bcm1480/smp.c +++ b/arch/mips/sibyte/bcm1480/smp.c | |||
| @@ -138,7 +138,7 @@ static void __cpuinit bcm1480_boot_secondary(int cpu, struct task_struct *idle) | |||
| 138 | 138 | ||
| 139 | /* | 139 | /* |
| 140 | * Use CFE to find out how many CPUs are available, setting up | 140 | * Use CFE to find out how many CPUs are available, setting up |
| 141 | * cpu_possible_map and the logical/physical mappings. | 141 | * cpu_possible_mask and the logical/physical mappings. |
| 142 | * XXXKW will the boot CPU ever not be physical 0? | 142 | * XXXKW will the boot CPU ever not be physical 0? |
| 143 | * | 143 | * |
| 144 | * Common setup before any secondaries are started | 144 | * Common setup before any secondaries are started |
diff --git a/arch/tile/kernel/setup.c b/arch/tile/kernel/setup.c index 5124093b2e1d..92a94f4920ad 100644 --- a/arch/tile/kernel/setup.c +++ b/arch/tile/kernel/setup.c | |||
| @@ -1100,7 +1100,7 @@ EXPORT_SYMBOL(hash_for_home_map); | |||
| 1100 | 1100 | ||
| 1101 | /* | 1101 | /* |
| 1102 | * cpu_cacheable_map lists all the cpus whose caches the hypervisor can | 1102 | * cpu_cacheable_map lists all the cpus whose caches the hypervisor can |
| 1103 | * flush on our behalf. It is set to cpu_possible_map OR'ed with | 1103 | * flush on our behalf. It is set to cpu_possible_mask OR'ed with |
| 1104 | * hash_for_home_map, and it is what should be passed to | 1104 | * hash_for_home_map, and it is what should be passed to |
| 1105 | * hv_flush_remote() to flush all caches. Note that if there are | 1105 | * hv_flush_remote() to flush all caches. Note that if there are |
| 1106 | * dedicated hypervisor driver tiles that have authorized use of their | 1106 | * dedicated hypervisor driver tiles that have authorized use of their |
diff --git a/arch/x86/xen/enlighten.c b/arch/x86/xen/enlighten.c index b132ade26f77..4f51bebac02c 100644 --- a/arch/x86/xen/enlighten.c +++ b/arch/x86/xen/enlighten.c | |||
| @@ -967,7 +967,7 @@ void xen_setup_shared_info(void) | |||
| 967 | xen_setup_mfn_list_list(); | 967 | xen_setup_mfn_list_list(); |
| 968 | } | 968 | } |
| 969 | 969 | ||
| 970 | /* This is called once we have the cpu_possible_map */ | 970 | /* This is called once we have the cpu_possible_mask */ |
| 971 | void xen_setup_vcpu_info_placement(void) | 971 | void xen_setup_vcpu_info_placement(void) |
| 972 | { | 972 | { |
| 973 | int cpu; | 973 | int cpu; |
diff --git a/init/Kconfig b/init/Kconfig index 72f33faca44f..6cfd71d06463 100644 --- a/init/Kconfig +++ b/init/Kconfig | |||
| @@ -1414,8 +1414,8 @@ endif # MODULES | |||
| 1414 | config INIT_ALL_POSSIBLE | 1414 | config INIT_ALL_POSSIBLE |
| 1415 | bool | 1415 | bool |
| 1416 | help | 1416 | help |
| 1417 | Back when each arch used to define their own cpu_online_map and | 1417 | Back when each arch used to define their own cpu_online_mask and |
| 1418 | cpu_possible_map, some of them chose to initialize cpu_possible_map | 1418 | cpu_possible_mask, some of them chose to initialize cpu_possible_mask |
| 1419 | with all 1s, and others with all 0s. When they were centralised, | 1419 | with all 1s, and others with all 0s. When they were centralised, |
| 1420 | it was better to provide this option than to break all the archs | 1420 | it was better to provide this option than to break all the archs |
| 1421 | and have several arch maintainers pursuing me down dark alleys. | 1421 | and have several arch maintainers pursuing me down dark alleys. |
diff --git a/kernel/cpuset.c b/kernel/cpuset.c index 1010cc61931f..eedeebe64b1a 100644 --- a/kernel/cpuset.c +++ b/kernel/cpuset.c | |||
| @@ -270,11 +270,11 @@ static struct file_system_type cpuset_fs_type = { | |||
| 270 | * are online. If none are online, walk up the cpuset hierarchy | 270 | * are online. If none are online, walk up the cpuset hierarchy |
| 271 | * until we find one that does have some online cpus. If we get | 271 | * until we find one that does have some online cpus. If we get |
| 272 | * all the way to the top and still haven't found any online cpus, | 272 | * all the way to the top and still haven't found any online cpus, |
| 273 | * return cpu_online_map. Or if passed a NULL cs from an exit'ing | 273 | * return cpu_online_mask. Or if passed a NULL cs from an exit'ing |
| 274 | * task, return cpu_online_map. | 274 | * task, return cpu_online_mask. |
| 275 | * | 275 | * |
| 276 | * One way or another, we guarantee to return some non-empty subset | 276 | * One way or another, we guarantee to return some non-empty subset |
| 277 | * of cpu_online_map. | 277 | * of cpu_online_mask. |
| 278 | * | 278 | * |
| 279 | * Call with callback_mutex held. | 279 | * Call with callback_mutex held. |
| 280 | */ | 280 | */ |
| @@ -867,7 +867,7 @@ static int update_cpumask(struct cpuset *cs, struct cpuset *trialcs, | |||
| 867 | int retval; | 867 | int retval; |
| 868 | int is_load_balanced; | 868 | int is_load_balanced; |
| 869 | 869 | ||
| 870 | /* top_cpuset.cpus_allowed tracks cpu_online_map; it's read-only */ | 870 | /* top_cpuset.cpus_allowed tracks cpu_online_mask; it's read-only */ |
| 871 | if (cs == &top_cpuset) | 871 | if (cs == &top_cpuset) |
| 872 | return -EACCES; | 872 | return -EACCES; |
| 873 | 873 | ||
| @@ -2149,7 +2149,7 @@ void __init cpuset_init_smp(void) | |||
| 2149 | * | 2149 | * |
| 2150 | * Description: Returns the cpumask_var_t cpus_allowed of the cpuset | 2150 | * Description: Returns the cpumask_var_t cpus_allowed of the cpuset |
| 2151 | * attached to the specified @tsk. Guaranteed to return some non-empty | 2151 | * attached to the specified @tsk. Guaranteed to return some non-empty |
| 2152 | * subset of cpu_online_map, even if this means going outside the | 2152 | * subset of cpu_online_mask, even if this means going outside the |
| 2153 | * tasks cpuset. | 2153 | * tasks cpuset. |
| 2154 | **/ | 2154 | **/ |
| 2155 | 2155 | ||
