Skip to content

Commit

Permalink
x86, mtrr: replace MTRRfix64K_00000_MSR with msr-index's MSR_MTRRfix6…
Browse files Browse the repository at this point in the history
…4K_00000

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>
  • Loading branch information
Jaswinder Singh Rajput authored and H. Peter Anvin committed May 15, 2009
1 parent d9bcc01 commit a036c7a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
4 changes: 2 additions & 2 deletions arch/x86/kernel/cpu/mtrr/generic.c
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ struct fixed_range_block {
};

static struct fixed_range_block fixed_range_blocks[] = {
{ MTRRfix64K_00000_MSR, 1 }, /* one 64k MTRR */
{ MSR_MTRRfix64K_00000, 1 }, /* one 64k MTRR */
{ MTRRfix16K_80000_MSR, 2 }, /* two 16k MTRRs */
{ MTRRfix4K_C0000_MSR, 8 }, /* eight 4k MTRRs */
{}
Expand Down Expand Up @@ -194,7 +194,7 @@ get_fixed_ranges(mtrr_type * frs)

k8_check_syscfg_dram_mod_en();

rdmsr(MTRRfix64K_00000_MSR, p[0], p[1]);
rdmsr(MSR_MTRRfix64K_00000, p[0], p[1]);

for (i = 0; i < 2; i++)
rdmsr(MTRRfix16K_80000_MSR + i, p[2 + i * 2], p[3 + i * 2]);
Expand Down
1 change: 0 additions & 1 deletion arch/x86/kernel/cpu/mtrr/mtrr.h
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@

#define MTRRdefType_MSR 0x2ff

#define MTRRfix64K_00000_MSR 0x250
#define MTRRfix16K_80000_MSR 0x258
#define MTRRfix16K_A0000_MSR 0x259
#define MTRRfix4K_C0000_MSR 0x268
Expand Down

0 comments on commit a036c7a

Please sign in to comment.