···6262 clr %r11,%r126363 je 5f # no more space in prefix array64644:6565- ahi %r8,1 # next cpu (r8 += 1)6666- cl %r8,.Llast_cpu-.LPG1(%r13) # is last possible cpu ?6767- jl 1b # jump if not last cpu6565+ ahi %r8,1 # next cpu (r8 += 1)6666+ chi %r8,MAX_CPU_ADDRESS # is last possible cpu ?6767+ jle 1b # jump if not last cpu68685:6969 lhi %r1,2 # mode 2 = esame (dump)7070 j 6f···130130#ifdef CONFIG_ZFCPDUMP131131.Lcurrent_cpu:132132 .long 0x0133133-.Llast_cpu:134134- .long 0x0000ffff135133.Lpref_arr_ptr:136134 .long zfcpdump_prefix_array137135#endif /* CONFIG_ZFCPDUMP */
+3-2
arch/s390/kernel/smp.c
···4949#include <asm/sclp.h>5050#include <asm/cputime.h>5151#include <asm/vdso.h>5252+#include <asm/cpu.h>5253#include "entry.h"53545455static struct task_struct *current_set[NR_CPUS];···301300 logical_cpu = cpumask_first(&avail);302301 if (logical_cpu >= nr_cpu_ids)303302 return 0;304304- for (cpu_id = 0; cpu_id <= 65535; cpu_id++) {303303+ for (cpu_id = 0; cpu_id <= MAX_CPU_ADDRESS; cpu_id++) {305304 if (cpu_known(cpu_id))306305 continue;307306 __cpu_logical_map[logical_cpu] = cpu_id;···380379 /* Use sigp detection algorithm if sclp doesn't work. */381380 if (sclp_get_cpu_info(info)) {382381 smp_use_sigp_detection = 1;383383- for (cpu = 0; cpu <= 65535; cpu++) {382382+ for (cpu = 0; cpu <= MAX_CPU_ADDRESS; cpu++) {384383 if (cpu == boot_cpu_addr)385384 continue;386385 __cpu_logical_map[CPU_INIT_NO] = cpu;