diff options
author | David Hildenbrand <dahi@linux.vnet.ibm.com> | 2015-05-06 03:29:53 -0400 |
---|---|---|
committer | Martin Schwidefsky <schwidefsky@de.ibm.com> | 2015-05-13 03:58:16 -0400 |
commit | 9747bc47b340228a007efcc262c0bc4d2e94116d (patch) | |
tree | 2786d3a5929169402418cc5222d9aa31ac3920d5 | |
parent | c431761dddff87039edb3300b9b29d1f9e0af2c9 (diff) |
s390/sclp: prepare smp_fill_possible_mask for global "struct sclp"
We need to rename sclp -> sclp_max to prepare for using the global variable
"sclp" for sclp access later in this function.
Acked-by: Martin Schwidefsky <schwidefsky@de.ibm.com>
Signed-off-by: David Hildenbrand <dahi@linux.vnet.ibm.com>
Signed-off-by: Martin Schwidefsky <schwidefsky@de.ibm.com>
-rw-r--r-- | arch/s390/kernel/smp.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/arch/s390/kernel/smp.c b/arch/s390/kernel/smp.c index efd2c1968000..a5321d5a0236 100644 --- a/arch/s390/kernel/smp.c +++ b/arch/s390/kernel/smp.c | |||
@@ -880,12 +880,12 @@ void __noreturn cpu_die(void) | |||
880 | 880 | ||
881 | void __init smp_fill_possible_mask(void) | 881 | void __init smp_fill_possible_mask(void) |
882 | { | 882 | { |
883 | unsigned int possible, sclp, cpu; | 883 | unsigned int possible, sclp_max, cpu; |
884 | 884 | ||
885 | sclp = min(smp_max_threads, sclp_get_mtid_max() + 1); | 885 | sclp_max = min(smp_max_threads, sclp_get_mtid_max() + 1); |
886 | sclp = sclp_get_max_cpu()*sclp ?: nr_cpu_ids; | 886 | sclp_max = sclp_get_max_cpu() * sclp_max ?: nr_cpu_ids; |
887 | possible = setup_possible_cpus ?: nr_cpu_ids; | 887 | possible = setup_possible_cpus ?: nr_cpu_ids; |
888 | possible = min(possible, sclp); | 888 | possible = min(possible, sclp_max); |
889 | for (cpu = 0; cpu < possible && cpu < nr_cpu_ids; cpu++) | 889 | for (cpu = 0; cpu < possible && cpu < nr_cpu_ids; cpu++) |
890 | set_cpu_possible(cpu, true); | 890 | set_cpu_possible(cpu, true); |
891 | } | 891 | } |