diff options
author | Jaswinder Singh Rajput <jaswinderrajput@gmail.com> | 2009-05-14 12:35:46 +0530 |
---|---|---|
committer | H. Peter Anvin <hpa@zytor.com> | 2009-05-15 07:49:01 -0700 |
commit | 52650257ea06bb15c2e2bbe854cbdf463726141a (patch) | |
tree | bf376e12e33a84582a06b7176f9c928700474b28 /arch/x86/kernel/cpu/mtrr/cleanup.c | |
parent | ba5673ff1ff5f428256db4cedd4b05b7be008bb6 (diff) | |
download | op-kernel-dev-52650257ea06bb15c2e2bbe854cbdf463726141a.zip op-kernel-dev-52650257ea06bb15c2e2bbe854cbdf463726141a.tar.gz |
x86, mtrr: replace MTRRdefType_MSR with msr-index's MSR_MTRRdefType
Use standard msr-index.h's MSR declaration and no need to declare again.
[ Impact: cleanup, no object code change ]
Signed-off-by: Jaswinder Singh Rajput <jaswinderrajput@gmail.com>
Signed-off-by: H. Peter Anvin <hpa@zytor.com>
Diffstat (limited to 'arch/x86/kernel/cpu/mtrr/cleanup.c')
-rw-r--r-- | arch/x86/kernel/cpu/mtrr/cleanup.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/arch/x86/kernel/cpu/mtrr/cleanup.c b/arch/x86/kernel/cpu/mtrr/cleanup.c index ce0fe4b..1d584a1 100644 --- a/arch/x86/kernel/cpu/mtrr/cleanup.c +++ b/arch/x86/kernel/cpu/mtrr/cleanup.c @@ -808,7 +808,7 @@ int __init mtrr_cleanup(unsigned address_bits) if (!is_cpu(INTEL) || enable_mtrr_cleanup < 1) return 0; - rdmsr(MTRRdefType_MSR, def, dummy); + rdmsr(MSR_MTRRdefType, def, dummy); def &= 0xff; if (def != MTRR_TYPE_UNCACHABLE) return 0; @@ -1003,7 +1003,7 @@ int __init mtrr_trim_uncached_memory(unsigned long end_pfn) */ if (!is_cpu(INTEL) || disable_mtrr_trim) return 0; - rdmsr(MTRRdefType_MSR, def, dummy); + rdmsr(MSR_MTRRdefType, def, dummy); def &= 0xff; if (def != MTRR_TYPE_UNCACHABLE) return 0; |