diff options
author | Jan Beulich <jbeulich@novell.com> | 2006-12-06 20:14:09 -0500 |
---|---|---|
committer | Andi Kleen <andi@basil.nowhere.org> | 2006-12-06 20:14:09 -0500 |
commit | 475850c86b908ae026d5a4be02a1b1e9c408c75a (patch) | |
tree | f6db38884b5c3433e612730bbb0fb6dde1e8a7f8 /arch/i386/kernel/cpu/mtrr/main.c | |
parent | 4a1c42275078f48b90428cdb062f5220d79ec9da (diff) |
[PATCH] i386: conditionalize inclusion of some MTRR flavors
Avoid inclusion of code that's dead for x86-64.
Signed-off-by: Jan Beulich <jbeulich@novell.com>
Signed-off-by: Andi Kleen <ak@suse.de>
Diffstat (limited to 'arch/i386/kernel/cpu/mtrr/main.c')
-rw-r--r-- | arch/i386/kernel/cpu/mtrr/main.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/arch/i386/kernel/cpu/mtrr/main.c b/arch/i386/kernel/cpu/mtrr/main.c index 2b8b0b361ccb..a4de30b9d3d3 100644 --- a/arch/i386/kernel/cpu/mtrr/main.c +++ b/arch/i386/kernel/cpu/mtrr/main.c | |||
@@ -59,7 +59,11 @@ struct mtrr_ops * mtrr_if = NULL; | |||
59 | static void set_mtrr(unsigned int reg, unsigned long base, | 59 | static void set_mtrr(unsigned int reg, unsigned long base, |
60 | unsigned long size, mtrr_type type); | 60 | unsigned long size, mtrr_type type); |
61 | 61 | ||
62 | #ifndef CONFIG_X86_64 | ||
62 | extern int arr3_protected; | 63 | extern int arr3_protected; |
64 | #else | ||
65 | #define arr3_protected 0 | ||
66 | #endif | ||
63 | 67 | ||
64 | void set_mtrr_ops(struct mtrr_ops * ops) | 68 | void set_mtrr_ops(struct mtrr_ops * ops) |
65 | { | 69 | { |
@@ -544,9 +548,11 @@ extern void centaur_init_mtrr(void); | |||
544 | 548 | ||
545 | static void __init init_ifs(void) | 549 | static void __init init_ifs(void) |
546 | { | 550 | { |
551 | #ifndef CONFIG_X86_64 | ||
547 | amd_init_mtrr(); | 552 | amd_init_mtrr(); |
548 | cyrix_init_mtrr(); | 553 | cyrix_init_mtrr(); |
549 | centaur_init_mtrr(); | 554 | centaur_init_mtrr(); |
555 | #endif | ||
550 | } | 556 | } |
551 | 557 | ||
552 | /* The suspend/resume methods are only for CPU without MTRR. CPU using generic | 558 | /* The suspend/resume methods are only for CPU without MTRR. CPU using generic |