diff options
Diffstat (limited to 'arch/x86/include/asm/processor.h')
-rw-r--r-- | arch/x86/include/asm/processor.h | 14 |
1 files changed, 5 insertions, 9 deletions
diff --git a/arch/x86/include/asm/processor.h b/arch/x86/include/asm/processor.h index cae9c3cb95c..4c25ab48257 100644 --- a/arch/x86/include/asm/processor.h +++ b/arch/x86/include/asm/processor.h | |||
@@ -94,10 +94,6 @@ struct cpuinfo_x86 { | |||
94 | int x86_cache_alignment; /* In bytes */ | 94 | int x86_cache_alignment; /* In bytes */ |
95 | int x86_power; | 95 | int x86_power; |
96 | unsigned long loops_per_jiffy; | 96 | unsigned long loops_per_jiffy; |
97 | #ifdef CONFIG_SMP | ||
98 | /* cpus sharing the last level cache: */ | ||
99 | cpumask_var_t llc_shared_map; | ||
100 | #endif | ||
101 | /* cpuid returned max cores value: */ | 97 | /* cpuid returned max cores value: */ |
102 | u16 x86_max_cores; | 98 | u16 x86_max_cores; |
103 | u16 apicid; | 99 | u16 apicid; |
@@ -141,10 +137,9 @@ extern __u32 cpu_caps_set[NCAPINTS]; | |||
141 | #ifdef CONFIG_SMP | 137 | #ifdef CONFIG_SMP |
142 | DECLARE_PER_CPU_SHARED_ALIGNED(struct cpuinfo_x86, cpu_info); | 138 | DECLARE_PER_CPU_SHARED_ALIGNED(struct cpuinfo_x86, cpu_info); |
143 | #define cpu_data(cpu) per_cpu(cpu_info, cpu) | 139 | #define cpu_data(cpu) per_cpu(cpu_info, cpu) |
144 | #define current_cpu_data __get_cpu_var(cpu_info) | ||
145 | #else | 140 | #else |
141 | #define cpu_info boot_cpu_data | ||
146 | #define cpu_data(cpu) boot_cpu_data | 142 | #define cpu_data(cpu) boot_cpu_data |
147 | #define current_cpu_data boot_cpu_data | ||
148 | #endif | 143 | #endif |
149 | 144 | ||
150 | extern const struct seq_operations cpuinfo_op; | 145 | extern const struct seq_operations cpuinfo_op; |
@@ -762,10 +757,11 @@ extern void select_idle_routine(const struct cpuinfo_x86 *c); | |||
762 | extern void init_c1e_mask(void); | 757 | extern void init_c1e_mask(void); |
763 | 758 | ||
764 | extern unsigned long boot_option_idle_override; | 759 | extern unsigned long boot_option_idle_override; |
765 | extern unsigned long idle_halt; | ||
766 | extern unsigned long idle_nomwait; | ||
767 | extern bool c1e_detected; | 760 | extern bool c1e_detected; |
768 | 761 | ||
762 | enum idle_boot_override {IDLE_NO_OVERRIDE=0, IDLE_HALT, IDLE_NOMWAIT, | ||
763 | IDLE_POLL, IDLE_FORCE_MWAIT}; | ||
764 | |||
769 | extern void enable_sep_cpu(void); | 765 | extern void enable_sep_cpu(void); |
770 | extern int sysenter_setup(void); | 766 | extern int sysenter_setup(void); |
771 | 767 | ||
@@ -902,7 +898,7 @@ extern unsigned long thread_saved_pc(struct task_struct *tsk); | |||
902 | /* | 898 | /* |
903 | * The below -8 is to reserve 8 bytes on top of the ring0 stack. | 899 | * The below -8 is to reserve 8 bytes on top of the ring0 stack. |
904 | * This is necessary to guarantee that the entire "struct pt_regs" | 900 | * This is necessary to guarantee that the entire "struct pt_regs" |
905 | * is accessable even if the CPU haven't stored the SS/ESP registers | 901 | * is accessible even if the CPU haven't stored the SS/ESP registers |
906 | * on the stack (interrupt gate does not save these registers | 902 | * on the stack (interrupt gate does not save these registers |
907 | * when switching to the same priv ring). | 903 | * when switching to the same priv ring). |
908 | * Therefore beware: accessing the ss/esp fields of the | 904 | * Therefore beware: accessing the ss/esp fields of the |