diff options
Diffstat (limited to 'arch')
-rw-r--r-- | arch/i386/kernel/cpu/mtrr/generic.c | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/arch/i386/kernel/cpu/mtrr/generic.c b/arch/i386/kernel/cpu/mtrr/generic.c index 68b383788882..150cf5055a3c 100644 --- a/arch/i386/kernel/cpu/mtrr/generic.c +++ b/arch/i386/kernel/cpu/mtrr/generic.c | |||
@@ -37,7 +37,7 @@ get_mtrr_var_range(unsigned int index, struct mtrr_var_range *vr) | |||
37 | rdmsr(MTRRphysMask_MSR(index), vr->mask_lo, vr->mask_hi); | 37 | rdmsr(MTRRphysMask_MSR(index), vr->mask_lo, vr->mask_hi); |
38 | } | 38 | } |
39 | 39 | ||
40 | static void __init | 40 | static void |
41 | get_fixed_ranges(mtrr_type * frs) | 41 | get_fixed_ranges(mtrr_type * frs) |
42 | { | 42 | { |
43 | unsigned int *p = (unsigned int *) frs; | 43 | unsigned int *p = (unsigned int *) frs; |
@@ -51,6 +51,11 @@ get_fixed_ranges(mtrr_type * frs) | |||
51 | rdmsr(MTRRfix4K_C0000_MSR + i, p[6 + i * 2], p[7 + i * 2]); | 51 | rdmsr(MTRRfix4K_C0000_MSR + i, p[6 + i * 2], p[7 + i * 2]); |
52 | } | 52 | } |
53 | 53 | ||
54 | void mtrr_save_fixed_ranges(void *info) | ||
55 | { | ||
56 | get_fixed_ranges(mtrr_state.fixed_ranges); | ||
57 | } | ||
58 | |||
54 | static void __init print_fixed(unsigned base, unsigned step, const mtrr_type*types) | 59 | static void __init print_fixed(unsigned base, unsigned step, const mtrr_type*types) |
55 | { | 60 | { |
56 | unsigned i; | 61 | unsigned i; |