aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAlexey Dobriyan <adobriyan@gmail.com>2006-06-23 05:04:18 -0400
committerLinus Torvalds <torvalds@g5.osdl.org>2006-06-23 10:42:56 -0400
commit27b07da7332f03a935cd13b6a6beb780bf19e7a4 (patch)
treea00fe04fbf8bb90fc3facb8b6b499f0f9dca3d77
parent87af2ffd4ccd0e6a2ff316fd008a9bedb4a4cb66 (diff)
[PATCH] Don't trigger full rebuild via CONFIG_MTRR
Only drm, framebuffer, mtrr parts + misc files here and there. Signed-off-by: Alexey Dobriyan <adobriyan@gmail.com> Signed-off-by: Andrew Morton <akpm@osdl.org> Signed-off-by: Linus Torvalds <torvalds@osdl.org>
-rw-r--r--arch/i386/kernel/cpu/common.c1
-rw-r--r--arch/i386/power/cpu.c1
-rw-r--r--include/asm-i386/mtrr.h4
-rw-r--r--include/asm-i386/processor.h8
4 files changed, 6 insertions, 8 deletions
diff --git a/arch/i386/kernel/cpu/common.c b/arch/i386/kernel/cpu/common.c
index a06a49075f10..f2a2b0ac9a18 100644
--- a/arch/i386/kernel/cpu/common.c
+++ b/arch/i386/kernel/cpu/common.c
@@ -11,6 +11,7 @@
11#include <asm/msr.h> 11#include <asm/msr.h>
12#include <asm/io.h> 12#include <asm/io.h>
13#include <asm/mmu_context.h> 13#include <asm/mmu_context.h>
14#include <asm/mtrr.h>
14#ifdef CONFIG_X86_LOCAL_APIC 15#ifdef CONFIG_X86_LOCAL_APIC
15#include <asm/mpspec.h> 16#include <asm/mpspec.h>
16#include <asm/apic.h> 17#include <asm/apic.h>
diff --git a/arch/i386/power/cpu.c b/arch/i386/power/cpu.c
index 79b2370c7fac..63d25ca6306f 100644
--- a/arch/i386/power/cpu.c
+++ b/arch/i386/power/cpu.c
@@ -10,6 +10,7 @@
10#include <linux/config.h> 10#include <linux/config.h>
11#include <linux/module.h> 11#include <linux/module.h>
12#include <linux/suspend.h> 12#include <linux/suspend.h>
13#include <asm/mtrr.h>
13 14
14static struct saved_context saved_context; 15static struct saved_context saved_context;
15 16
diff --git a/include/asm-i386/mtrr.h b/include/asm-i386/mtrr.h
index 5a46de08efea..07f063ae26ea 100644
--- a/include/asm-i386/mtrr.h
+++ b/include/asm-i386/mtrr.h
@@ -76,6 +76,8 @@ extern int mtrr_add_page (unsigned long base, unsigned long size,
76extern int mtrr_del (int reg, unsigned long base, unsigned long size); 76extern int mtrr_del (int reg, unsigned long base, unsigned long size);
77extern int mtrr_del_page (int reg, unsigned long base, unsigned long size); 77extern int mtrr_del_page (int reg, unsigned long base, unsigned long size);
78extern void mtrr_centaur_report_mcr(int mcr, u32 lo, u32 hi); 78extern void mtrr_centaur_report_mcr(int mcr, u32 lo, u32 hi);
79extern void mtrr_ap_init(void);
80extern void mtrr_bp_init(void);
79# else 81# else
80static __inline__ int mtrr_add (unsigned long base, unsigned long size, 82static __inline__ int mtrr_add (unsigned long base, unsigned long size,
81 unsigned int type, char increment) 83 unsigned int type, char increment)
@@ -100,6 +102,8 @@ static __inline__ int mtrr_del_page (int reg, unsigned long base,
100 102
101static __inline__ void mtrr_centaur_report_mcr(int mcr, u32 lo, u32 hi) {;} 103static __inline__ void mtrr_centaur_report_mcr(int mcr, u32 lo, u32 hi) {;}
102 104
105#define mtrr_ap_init() do {} while (0)
106#define mtrr_bp_init() do {} while (0)
103# endif 107# endif
104 108
105#endif 109#endif
diff --git a/include/asm-i386/processor.h b/include/asm-i386/processor.h
index 4df3818e4122..5116465272ec 100644
--- a/include/asm-i386/processor.h
+++ b/include/asm-i386/processor.h
@@ -728,14 +728,6 @@ extern unsigned long boot_option_idle_override;
728extern void enable_sep_cpu(void); 728extern void enable_sep_cpu(void);
729extern int sysenter_setup(void); 729extern int sysenter_setup(void);
730 730
731#ifdef CONFIG_MTRR
732extern void mtrr_ap_init(void);
733extern void mtrr_bp_init(void);
734#else
735#define mtrr_ap_init() do {} while (0)
736#define mtrr_bp_init() do {} while (0)
737#endif
738
739#ifdef CONFIG_X86_MCE 731#ifdef CONFIG_X86_MCE
740extern void mcheck_init(struct cpuinfo_x86 *c); 732extern void mcheck_init(struct cpuinfo_x86 *c);
741#else 733#else