aboutsummaryrefslogtreecommitdiffstats
path: root/include/asm-i386/processor.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/asm-i386/processor.h')
-rw-r--r--include/asm-i386/processor.h26
1 files changed, 7 insertions, 19 deletions
diff --git a/include/asm-i386/processor.h b/include/asm-i386/processor.h
index 805f0dcda46..b32346d62e1 100644
--- a/include/asm-i386/processor.h
+++ b/include/asm-i386/processor.h
@@ -17,7 +17,6 @@
17#include <asm/msr.h> 17#include <asm/msr.h>
18#include <asm/system.h> 18#include <asm/system.h>
19#include <linux/cache.h> 19#include <linux/cache.h>
20#include <linux/config.h>
21#include <linux/threads.h> 20#include <linux/threads.h>
22#include <asm/percpu.h> 21#include <asm/percpu.h>
23#include <linux/cpumask.h> 22#include <linux/cpumask.h>
@@ -72,8 +71,12 @@ struct cpuinfo_x86 {
72 cpumask_t llc_shared_map; /* cpus sharing the last level cache */ 71 cpumask_t llc_shared_map; /* cpus sharing the last level cache */
73#endif 72#endif
74 unsigned char x86_max_cores; /* cpuid returned max cores value */ 73 unsigned char x86_max_cores; /* cpuid returned max cores value */
75 unsigned char booted_cores; /* number of cores as seen by OS */
76 unsigned char apicid; 74 unsigned char apicid;
75#ifdef CONFIG_SMP
76 unsigned char booted_cores; /* number of cores as seen by OS */
77 __u8 phys_proc_id; /* Physical processor id. */
78 __u8 cpu_core_id; /* Core id */
79#endif
77} __attribute__((__aligned__(SMP_CACHE_BYTES))); 80} __attribute__((__aligned__(SMP_CACHE_BYTES)));
78 81
79#define X86_VENDOR_INTEL 0 82#define X86_VENDOR_INTEL 0
@@ -105,14 +108,13 @@ extern struct cpuinfo_x86 cpu_data[];
105#define current_cpu_data boot_cpu_data 108#define current_cpu_data boot_cpu_data
106#endif 109#endif
107 110
108extern int phys_proc_id[NR_CPUS];
109extern int cpu_core_id[NR_CPUS];
110extern int cpu_llc_id[NR_CPUS]; 111extern int cpu_llc_id[NR_CPUS];
111extern char ignore_fpu_irq; 112extern char ignore_fpu_irq;
112 113
113extern void identify_cpu(struct cpuinfo_x86 *); 114extern void identify_cpu(struct cpuinfo_x86 *);
114extern void print_cpu_info(struct cpuinfo_x86 *); 115extern void print_cpu_info(struct cpuinfo_x86 *);
115extern unsigned int init_intel_cacheinfo(struct cpuinfo_x86 *c); 116extern unsigned int init_intel_cacheinfo(struct cpuinfo_x86 *c);
117extern unsigned short num_cache_leaves;
116 118
117#ifdef CONFIG_X86_HT 119#ifdef CONFIG_X86_HT
118extern void detect_ht(struct cpuinfo_x86 *c); 120extern void detect_ht(struct cpuinfo_x86 *c);
@@ -555,7 +557,7 @@ extern void prepare_to_copy(struct task_struct *tsk);
555extern int kernel_thread(int (*fn)(void *), void * arg, unsigned long flags); 557extern int kernel_thread(int (*fn)(void *), void * arg, unsigned long flags);
556 558
557extern unsigned long thread_saved_pc(struct task_struct *tsk); 559extern unsigned long thread_saved_pc(struct task_struct *tsk);
558void show_trace(struct task_struct *task, unsigned long *stack); 560void show_trace(struct task_struct *task, struct pt_regs *regs, unsigned long *stack);
559 561
560unsigned long get_wchan(struct task_struct *p); 562unsigned long get_wchan(struct task_struct *p);
561 563
@@ -729,18 +731,4 @@ extern unsigned long boot_option_idle_override;
729extern void enable_sep_cpu(void); 731extern void enable_sep_cpu(void);
730extern int sysenter_setup(void); 732extern int sysenter_setup(void);
731 733
732#ifdef CONFIG_MTRR
733extern void mtrr_ap_init(void);
734extern void mtrr_bp_init(void);
735#else
736#define mtrr_ap_init() do {} while (0)
737#define mtrr_bp_init() do {} while (0)
738#endif
739
740#ifdef CONFIG_X86_MCE
741extern void mcheck_init(struct cpuinfo_x86 *c);
742#else
743#define mcheck_init(c) do {} while(0)
744#endif
745
746#endif /* __ASM_I386_PROCESSOR_H */ 734#endif /* __ASM_I386_PROCESSOR_H */