aboutsummaryrefslogtreecommitdiff
path: root/arch/x86/kernel/cpu/proc.c
AgeCommit message (Collapse)AuthorFilesLines
2007-10-19x86: convert cpuinfo_x86 array to a per_cpu arrayMike Travis1-3/+8
cpu_data is currently an array defined using NR_CPUS. This means that we overallocate since we will rarely really use maximum configured cpus. When NR_CPU count is raised to 4096 the size of cpu_data becomes 3,145,728 bytes. These changes were adopted from the sparc64 (and ia64) code. An additional field was added to cpuinfo_x86 to be a non-ambiguous cpu index. This corresponds to the index into a cpumask_t as well as the per_cpu index. It's used in various places like show_cpuinfo(). cpu_data is defined to be the boot_cpu_data structure for the NON-SMP case. Signed-off-by: Mike Travis <[email protected]> Acked-by: Christoph Lameter <[email protected]> Cc: Andi Kleen <[email protected]> Cc: James Bottomley <[email protected]> Cc: Dmitry Torokhov <[email protected]> Cc: "Antonino A. Daplas" <[email protected]> Cc: Mark M. Hoffman <[email protected]> Signed-off-by: Andrew Morton <[email protected]> Signed-off-by: Ingo Molnar <[email protected]> Signed-off-by: Thomas Gleixner <[email protected]>
2007-10-16x86: Convert cpu_core_map to be a per cpu variableMike Travis1-1/+2
This is from an earlier message from 'Christoph Lameter': cpu_core_map is currently an array defined using NR_CPUS. This means that we overallocate since we will rarely really use maximum configured cpu. If we put the cpu_core_map into the per cpu area then it will be allocated for each processor as it comes online. This means that the core map cannot be accessed until the per cpu area has been allocated. Xen does a weird thing here looping over all processors and zeroing the masks that are not yet allocated and that will be zeroed when they are allocated. I commented the code out. Signed-off-by: Christoph Lameter <[email protected]> Signed-off-by: Mike Travis <[email protected]> Cc: Andi Kleen <[email protected]> Cc: Christoph Lameter <[email protected]> Cc: "Siddha, Suresh B" <[email protected]> Signed-off-by: Andrew Morton <[email protected]> Signed-off-by: Linus Torvalds <[email protected]>
2007-10-11i386: move kernel/cpuThomas Gleixner1-0/+192
Signed-off-by: Thomas Gleixner <[email protected]> Signed-off-by: Ingo Molnar <[email protected]>