Commit 475850c8 authored by Jan Beulich's avatar Jan Beulich Committed by Andi Kleen

[PATCH] i386: conditionalize inclusion of some MTRR flavors

Avoid inclusion of code that's dead for x86-64.
Signed-off-by: default avatarJan Beulich <jbeulich@novell.com>
Signed-off-by: default avatarAndi Kleen <ak@suse.de>
parent 4a1c4227
obj-y := main.o if.o generic.o state.o obj-y := main.o if.o generic.o state.o
obj-y += amd.o obj-$(CONFIG_X86_32) += amd.o cyrix.o centaur.o
obj-y += cyrix.o
obj-y += centaur.o
...@@ -59,7 +59,11 @@ struct mtrr_ops * mtrr_if = NULL; ...@@ -59,7 +59,11 @@ struct mtrr_ops * mtrr_if = NULL;
static void set_mtrr(unsigned int reg, unsigned long base, static void set_mtrr(unsigned int reg, unsigned long base,
unsigned long size, mtrr_type type); unsigned long size, mtrr_type type);
#ifndef CONFIG_X86_64
extern int arr3_protected; extern int arr3_protected;
#else
#define arr3_protected 0
#endif
void set_mtrr_ops(struct mtrr_ops * ops) void set_mtrr_ops(struct mtrr_ops * ops)
{ {
...@@ -544,9 +548,11 @@ extern void centaur_init_mtrr(void); ...@@ -544,9 +548,11 @@ extern void centaur_init_mtrr(void);
static void __init init_ifs(void) static void __init init_ifs(void)
{ {
#ifndef CONFIG_X86_64
amd_init_mtrr(); amd_init_mtrr();
cyrix_init_mtrr(); cyrix_init_mtrr();
centaur_init_mtrr(); centaur_init_mtrr();
#endif
} }
/* The suspend/resume methods are only for CPU without MTRR. CPU using generic /* The suspend/resume methods are only for CPU without MTRR. CPU using generic
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment