alistair23-linux/arch/x86/kernel/cpu
Rusty Russell 30e1e6d1af cpumask: fix CONFIG_CPUMASK_OFFSTACK=y cpu hotunplug crash
Impact: Fix cpu offline when CONFIG_MAXSMP=y

Changeset bc9b83dd1f "cpumask: convert
c1e_mask in arch/x86/kernel/process.c to cpumask_var_t" contained a
bug: c1e_mask is manipulated even if C1E isn't detected (and hence
not allocated).

This is simply fixed by checking for NULL (which gcc optimizes out
anyway of CONFIG_CPUMASK_OFFSTACK=n, since it knows ce1_mask can never
be NULL).

In addition, fix a leak where select_idle_routine re-allocates
(and re-clears) c1e_mask on every cpu init.

Reported-by: Ingo Molnar <mingo@elte.hu>
Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
Cc: Mike Travis <travis@sgi.com>
LKML-Reference: <200903171450.34549.rusty@rustcorp.com.au>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
2009-03-18 09:40:35 +01:00
..
cpufreq cpumask: x86: convert cpu_sibling_map/cpu_core_map to cpumask_var_t 2009-03-13 14:49:50 +10:30
mcheck cpumask: use new cpumask functions throughout x86 2009-03-13 14:49:54 +10:30
mtrr x86: tone down mtrr_trim_uncached_memory() warning 2009-01-29 11:45:35 +01:00
.gitignore
addon_cpuid_features.c x86, apic: remove genapic.h 2009-02-17 17:52:44 +01:00
amd.c x86: remove smp_apply_quirks()/smp_checks() 2009-03-08 16:22:56 +01:00
bugs.c
bugs_64.c
centaur.c
centaur_64.c
cmpxchg.c
common.c cpumask: fix CONFIG_CPUMASK_OFFSTACK=y cpu hotunplug crash 2009-03-18 09:40:35 +01:00
cpu.h
cyrix.c
hypervisor.c
intel.c x86: remove smp_apply_quirks()/smp_checks() 2009-03-08 16:22:56 +01:00
intel_cacheinfo.c Merge branch 'x86/core' into cpus4096 2009-03-11 10:49:34 +01:00
Makefile
mkcapflags.pl
perfctr-watchdog.c x86: fold apic_ops into genapic 2009-02-17 12:22:20 +01:00
powerflags.c
proc.c cpumask: use new cpumask functions throughout x86 2009-03-13 14:49:54 +10:30
transmeta.c
umc.c
vmware.c