diff options
Diffstat (limited to 'arch/x86/include/asm/processor.h')
-rw-r--r-- | arch/x86/include/asm/processor.h | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/arch/x86/include/asm/processor.h b/arch/x86/include/asm/processor.h index c24297268ebc..d53c54b842da 100644 --- a/arch/x86/include/asm/processor.h +++ b/arch/x86/include/asm/processor.h | |||
@@ -132,6 +132,8 @@ struct cpuinfo_x86 { | |||
132 | /* Index into per_cpu list: */ | 132 | /* Index into per_cpu list: */ |
133 | u16 cpu_index; | 133 | u16 cpu_index; |
134 | u32 microcode; | 134 | u32 microcode; |
135 | /* Address space bits used by the cache internally */ | ||
136 | u8 x86_cache_bits; | ||
135 | unsigned initialized : 1; | 137 | unsigned initialized : 1; |
136 | } __randomize_layout; | 138 | } __randomize_layout; |
137 | 139 | ||
@@ -183,7 +185,7 @@ extern void cpu_detect(struct cpuinfo_x86 *c); | |||
183 | 185 | ||
184 | static inline unsigned long long l1tf_pfn_limit(void) | 186 | static inline unsigned long long l1tf_pfn_limit(void) |
185 | { | 187 | { |
186 | return BIT_ULL(boot_cpu_data.x86_phys_bits - 1 - PAGE_SHIFT); | 188 | return BIT_ULL(boot_cpu_data.x86_cache_bits - 1 - PAGE_SHIFT); |
187 | } | 189 | } |
188 | 190 | ||
189 | extern void early_cpu_init(void); | 191 | extern void early_cpu_init(void); |