aboutsummaryrefslogtreecommitdiffstats
path: root/arch
diff options
context:
space:
mode:
Diffstat (limited to 'arch')
-rw-r--r--arch/i386/kernel/cpu/mtrr/generic.c7
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
40static void __init 40static void
41get_fixed_ranges(mtrr_type * frs) 41get_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
54void mtrr_save_fixed_ranges(void *info)
55{
56 get_fixed_ranges(mtrr_state.fixed_ranges);
57}
58
54static void __init print_fixed(unsigned base, unsigned step, const mtrr_type*types) 59static void __init print_fixed(unsigned base, unsigned step, const mtrr_type*types)
55{ 60{
56 unsigned i; 61 unsigned i;