[PATCH] x86_64: add support for Intel dual-core detection and displaying
Appended patch adds the support for Intel dual-core detection and displaying
the core related information in /proc/cpuinfo.
It adds two new fields "core id" and "cpu cores" to x86 /proc/cpuinfo and the
"core id" field for x86_64("cpu cores" field is already present in x86_64).
Number of processor cores in a die is detected using cpuid(4) and this is
documented in IA-32 Intel Architecture Software Developer's Manual (vol 2a)
(http://developer.intel.com/design/pentium4/manuals/index_new.htm#sdm_vol2a)
This patch also adds cpu_core_map similar to cpu_sibling_map.
Slightly hacked by AK.
Signed-off-by: Suresh Siddha <suresh.b.siddha@intel.com>
Signed-off-by: Andi Kleen <ak@suse.de>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
This commit is contained in:
committed by
Linus Torvalds
parent
f2ea2750fb
commit
3dd9d51484
@@ -98,6 +98,7 @@ extern struct cpuinfo_x86 cpu_data[];
|
||||
#endif
|
||||
|
||||
extern int phys_proc_id[NR_CPUS];
|
||||
extern int cpu_core_id[NR_CPUS];
|
||||
extern char ignore_fpu_irq;
|
||||
|
||||
extern void identify_cpu(struct cpuinfo_x86 *);
|
||||
|
||||
@@ -35,6 +35,7 @@ extern void smp_alloc_memory(void);
|
||||
extern int pic_mode;
|
||||
extern int smp_num_siblings;
|
||||
extern cpumask_t cpu_sibling_map[];
|
||||
extern cpumask_t cpu_core_map[];
|
||||
|
||||
extern void smp_flush_tlb(void);
|
||||
extern void smp_message_irq(int cpl, void *dev_id, struct pt_regs *regs);
|
||||
|
||||
@@ -48,7 +48,9 @@ extern void (*mtrr_hook) (void);
|
||||
extern void zap_low_mappings(void);
|
||||
void smp_stop_cpu(void);
|
||||
extern cpumask_t cpu_sibling_map[NR_CPUS];
|
||||
extern cpumask_t cpu_core_map[NR_CPUS];
|
||||
extern u8 phys_proc_id[NR_CPUS];
|
||||
extern u8 cpu_core_id[NR_CPUS];
|
||||
|
||||
#define SMP_TRAMPOLINE_BASE 0x6000
|
||||
|
||||
|
||||
Reference in New Issue
Block a user