summaryrefslogtreecommitdiff
path: root/arch/powerpc/include
diff options
context:
space:
mode:
authorPaul Mackerras <paulus@samba.org>2013-09-03 14:16:23 +0400
committerBenjamin Herrenschmidt <benh@kernel.crashing.org>2013-09-05 11:29:19 +0400
commitfd3bb91287b600d8b389c159e8dd96391410087b (patch)
tree02229ae5302d089f349ae9a6740a800bb45f322a /arch/powerpc/include
parent91c2beb56b3ab5cf91fe04ddaeb69b90a22b5d36 (diff)
downloadlinux-fd3bb91287b600d8b389c159e8dd96391410087b.tar.xz
powerpc/xmon: Fix printing of set of CPUs in xmon
Commit 24ec2125f3 ("powerpc/xmon: Use cpumask iterator to avoid warning") replaced a loop from 0 to NR_CPUS-1 with a for_each_possible_cpu() loop, which means that if the last possible cpu is in xmon, we print the wrong value for the end of the range. For example, if 4 cpus are possible, NR_CPUS is 128, and all cpus are in xmon, we print "0-7f" rather than "0-3". The code also assumes that the set of possible cpus is contiguous, which may not necessarily be true. This fixes the code to check explicitly for contiguity, and to print the ending value correctly. Signed-off-by: Paul Mackerras <paulus@samba.org> Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
Diffstat (limited to 'arch/powerpc/include')
0 files changed, 0 insertions, 0 deletions