File tree Expand file tree Collapse file tree 2 files changed +13
-14
lines changed Expand file tree Collapse file tree 2 files changed +13
-14
lines changed Original file line number Diff line number Diff line change @@ -322,23 +322,9 @@ static inline void cr4_clear_bits(unsigned long mask)
322
322
local_irq_restore (flags );
323
323
}
324
324
325
- /*
326
- * Save some of cr4 feature set we're using (e.g. Pentium 4MB
327
- * enable and PPro Global page enable), so that any CPU's that boot
328
- * up after us can get the correct flags. This should only be used
329
- * during boot on the boot cpu.
330
- */
331
325
extern unsigned long mmu_cr4_features ;
332
326
extern u32 * trampoline_cr4_features ;
333
327
334
- static inline void cr4_set_bits_and_update_boot (unsigned long mask )
335
- {
336
- mmu_cr4_features |= mask ;
337
- if (trampoline_cr4_features )
338
- * trampoline_cr4_features = mmu_cr4_features ;
339
- cr4_set_bits (mask );
340
- }
341
-
342
328
extern void initialize_tlbstate_and_flush (void );
343
329
344
330
#define TLB_FLUSH_ALL -1UL
Original file line number Diff line number Diff line change @@ -194,6 +194,19 @@ struct map_range {
194
194
195
195
static int page_size_mask ;
196
196
197
+ /*
198
+ * Save some of cr4 feature set we're using (e.g. Pentium 4MB
199
+ * enable and PPro Global page enable), so that any CPU's that boot
200
+ * up after us can get the correct flags. Invoked on the boot CPU.
201
+ */
202
+ static inline void cr4_set_bits_and_update_boot (unsigned long mask )
203
+ {
204
+ mmu_cr4_features |= mask ;
205
+ if (trampoline_cr4_features )
206
+ * trampoline_cr4_features = mmu_cr4_features ;
207
+ cr4_set_bits (mask );
208
+ }
209
+
197
210
static void __init probe_page_size_mask (void )
198
211
{
199
212
/*
You can’t perform that action at this time.
0 commit comments