aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/media/dvb/siano/smsusb.c
diff options
context:
space:
mode:
authorAnton Blanchard <anton@samba.org>2012-06-28 19:28:57 +0000
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2012-07-16 08:47:35 -0700
commit24ec2125f3c828af6446d8eeee2268a05e78724b (patch)
tree02187c0e2aceb47674da3cca16f020699e6b22d9 /drivers/media/dvb/siano/smsusb.c
parentd3ea90f6d10bc66b422299934b70e3f9e62fc67e (diff)
downloadkernel_samsung_smdk4412-24ec2125f3c828af6446d8eeee2268a05e78724b.zip
kernel_samsung_smdk4412-24ec2125f3c828af6446d8eeee2268a05e78724b.tar.gz
kernel_samsung_smdk4412-24ec2125f3c828af6446d8eeee2268a05e78724b.tar.bz2
powerpc/xmon: Use cpumask iterator to avoid warning
commit bc1d7702910c7c7e88eb60b58429dbfe293683ce upstream. We have a bug report where the kernel hits a warning in the cpumask code: WARNING: at include/linux/cpumask.h:107 Which is: WARN_ON_ONCE(cpu >= nr_cpumask_bits); The backtrace is: cpu_cmd cmds xmon_core xmon die xmon is iterating through 0 to NR_CPUS. I'm not sure why we are still open coding this but iterating above nr_cpu_ids is definitely a bug. This patch iterates through all possible cpus, in case we issue a system reset and CPUs in an offline state call in. Perhaps the old code was trying to handle CPUs that were in the partition but were never started (eg kexec into a kernel with an nr_cpus= boot option). They are going to die way before we get into xmon since we haven't set any kernel state up for them. Signed-off-by: Anton Blanchard <anton@samba.org> Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/media/dvb/siano/smsusb.c')
0 files changed, 0 insertions, 0 deletions