kernel-hacking-2024-linux-s.../arch/s390/kernel
Martin Schwidefsky dd4a5a31fc [S390] avoid warning in show_cpuinfo
The .start function and indirectly the .next function of the show_cpuinfo
sequential operation uses NR_CPUS as limit instead of nr_cpu_ids.
This can cause warnings like this:

WARNING: at /usr/src/linux/include/linux/cpumask.h:107
Process lscpu (pid: 575, task: 000000007deb4338, ksp: 000000007794f588)
Krnl PSW : 0704000180000000 0000000000106db4 (show_cpuinfo+0x108/0x234)
           R:0 T:1 IO:1 EX:1 Key:0 M:1 W:0 P:0 AS:0 CC:0 PM:0 EA:3
Krnl GPRS: 0000000000000003 0000000000791988 000000000071b478 0000000000000004
           0000000000000001 0000000000000000 000000007d139500 0000000000000400
           0000000000000000 000000000070e24c 000000007d48d600 0000000000000005
           000000007d48d600 00000000004dfa10 0000000000106cf8 000000007794fcc0
Krnl Code: 0000000000106da8: 95001000           cli     0(%r1),0
           0000000000106dac: a774ffac           brc     7,106d04
           0000000000106db0: a7f40001           brc     15,106db2
          >0000000000106db4: 92011000           mvi     0(%r1),1
           0000000000106db8: a7f4ffa6           brc     15,106d04
           0000000000106dbc: c0e5000065b4       brasl   %r14,113924
           0000000000106dc2: c09000303a45       larl    %r9,70e24c
           0000000000106dc8: c020001eefd4       larl    %r2,4e4d70

Replacing NR_CPUS with nr_cpu_ids fixes it.

Signed-off-by: Martin Schwidefsky <schwidefsky@de.ibm.com>
2011-10-30 15:16:15 +01:00
..
vdso32 [S390] vdso: disable gcov profiling 2011-05-23 10:24:29 +02:00
vdso64 [S390] vdso: disable gcov profiling 2011-05-23 10:24:29 +02:00
asm-offsets.c [S390] kvm: fix address mode switching 2011-09-20 17:07:34 +02:00
audit.c
audit.h
base.S [S390] Use diagnose 308 for system reset 2011-08-03 16:44:19 +02:00
bitmap.c
compat_audit.c
compat_exec_domain.c
compat_linux.c BKL: remove extraneous #include <smp_lock.h> 2010-11-17 08:59:32 -08:00
compat_linux.h Mark arguments to certain syscalls as being const 2010-08-13 16:53:13 -07:00
compat_ptrace.h [S390] ptrace cleanup 2011-01-05 12:47:31 +01:00
compat_signal.c [S390] signal: convert to use set_current_blocked() 2011-08-03 16:44:20 +02:00
compat_wrapper.S All Arch: remove linkage for sys_nfsservctl system call 2011-08-26 15:09:58 -07:00
cpcmd.c
crash.c
debug.c llseek: automatically add .llseek fop 2010-10-15 15:53:27 +02:00
diag.c [S390] replace diag10() with diag10_range() function 2011-05-10 17:13:43 +02:00
dis.c atomic: use <linux/atomic.h> 2011-07-26 16:49:47 -07:00
early.c [S390] nss,initrd: kernel image and initrd must be in different segments 2011-08-24 17:15:23 +02:00
ebcdic.c
entry.h [S390] cleanup program check handler prototypes 2011-07-24 10:48:21 +02:00
entry.S [S390] Add PSW restart shutdown trigger 2011-08-03 16:44:19 +02:00
entry64.S [S390] kvm: fix address mode switching 2011-09-20 17:07:34 +02:00
ftrace.c [S390] cleanup ftrace backend functions 2011-01-05 12:47:31 +01:00
head.S [S390] fix s390 assembler code alignments 2011-07-24 10:48:21 +02:00
head31.S [S390] iucv cr0 enablement bit 2011-07-24 10:48:22 +02:00
head64.S [S390] initial cr0 bits 2011-07-24 10:48:22 +02:00
init_task.c
ipl.c [S390] Change default action from reipl to stop for on_restart 2011-08-24 17:15:24 +02:00
irq.c [S390] fix mismatch in summation of I/O IRQ statistics 2011-10-30 15:16:15 +01:00
jump_label.c jump label: Add s390 support 2011-04-04 13:43:16 -04:00
kprobes.c [S390] ptrace cleanup 2011-01-05 12:47:31 +01:00
machine_kexec.c [S390] kexec: Disable ftrace during kexec 2011-03-15 17:08:24 +01:00
Makefile [S390] irq: merge irq.c and s390_ext.c 2011-05-26 09:48:24 +02:00
mcount.S [S390] fix s390 assembler code alignments 2011-07-24 10:48:21 +02:00
mcount64.S [S390] fix s390 assembler code alignments 2011-07-24 10:48:21 +02:00
mem_detect.c Fix IRQ flag handling naming 2010-10-07 14:08:55 +01:00
module.c modules: make arch's use default loader hooks 2011-07-24 22:06:04 +09:30
nmi.c [S390] irq: have detailed statistics for interrupt types 2011-01-05 12:47:25 +01:00
process.c [S390] Remove unused includes in process.c 2011-05-23 10:24:32 +02:00
processor.c [S390] avoid warning in show_cpuinfo 2011-10-30 15:16:15 +01:00
ptrace.c [S390] ptrace cleanup 2011-01-05 12:47:31 +01:00
reipl.S [S390] fix s390 assembler code alignments 2011-07-24 10:48:21 +02:00
reipl64.S [S390] Export store_status() function 2011-08-03 16:44:19 +02:00
relocate_kernel.S [S390] fix s390 assembler code alignments 2011-07-24 10:48:21 +02:00
relocate_kernel64.S [S390] fix s390 assembler code alignments 2011-07-24 10:48:21 +02:00
s390_ksyms.c [S390] move sie code to entry.S 2011-07-24 10:48:21 +02:00
sclp.S [S390] fix s390 assembler code alignments 2011-07-24 10:48:21 +02:00
setup.c [S390] Add support for IBM zEnterprise 114 2011-08-03 16:44:20 +02:00
signal.c [S390] signal: use set_restore_sigmask() helper 2011-08-03 16:44:21 +02:00
smp.c [S390] smp: remove pointless comments in startup_secondary() 2011-08-03 16:44:21 +02:00
stacktrace.c
suspend.c PM / Hibernate: Include storage keys in hibernation image on s390 2011-10-16 23:27:46 +02:00
switch_cpu.S [S390] fix s390 assembler code alignments 2011-07-24 10:48:21 +02:00
switch_cpu64.S [S390] fix s390 assembler code alignments 2011-07-24 10:48:21 +02:00
swsusp_asm64.S PM / Hibernate: Include storage keys in hibernation image on s390 2011-10-16 23:27:46 +02:00
sys_s390.c [S390] sys_personality: follow u_long to unsigned int conversion 2010-08-13 10:06:54 +02:00
syscalls.S All Arch: remove linkage for sys_nfsservctl system call 2011-08-26 15:09:58 -07:00
sysinfo.c [S390] topology: add SCHED_MC config option 2010-10-29 16:50:49 +02:00
time.c time, s390: Get rid of compile warning 2011-10-12 10:24:10 +02:00
topology.c [S390] irq: merge irq.c and s390_ext.c 2011-05-26 09:48:24 +02:00
traps.c atomic: use <linux/atomic.h> 2011-07-26 16:49:47 -07:00
vdso.c mm: arch: rename in_gate_area_no_task to in_gate_area_no_mm 2011-03-23 16:36:55 -04:00
vmlinux.lds.S percpu: Always align percpu output section to PAGE_SIZE 2011-03-24 18:50:09 +01:00
vtime.c [S390] irq: merge irq.c and s390_ext.c 2011-05-26 09:48:24 +02:00