aboutsummaryrefslogtreecommitdiffstats
path: root/arch/x86
diff options
context:
space:
mode:
authorLinus Torvalds <torvalds@linux-foundation.org>2008-04-29 12:03:19 -0400
committerLinus Torvalds <torvalds@linux-foundation.org>2008-04-29 12:03:19 -0400
commit1f43c5393033de90bac4410352b1d2a69dcbe7ef (patch)
tree3e6c3b9e9ea4dd6620a3b8332546a3cbbeddb1fd /arch/x86
parentc135b6592bd63925397e60425e0301f33f06c7a6 (diff)
parente90955c26d8af318658c45caadb1d330ac6a506c (diff)
Merge branch 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/x86/linux-2.6-x86-fixes
* 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/x86/linux-2.6-x86-fixes: x86: fix PCI MSI breaks when booting with nosmp x86: vget_cycles() __always_inline x86: add more boot protocol documentation bootprotocol: cleanup x86: fix warning in "x86: clean up vSMP detection" x86: !x & y typo in mtrr code
Diffstat (limited to 'arch/x86')
-rw-r--r--arch/x86/kernel/cpu/mtrr/generic.c2
-rw-r--r--arch/x86/kernel/e820_64.c2
-rw-r--r--arch/x86/kernel/smpboot.c10
-rw-r--r--arch/x86/kernel/vsmp_64.c2
4 files changed, 6 insertions, 10 deletions
diff --git a/arch/x86/kernel/cpu/mtrr/generic.c b/arch/x86/kernel/cpu/mtrr/generic.c
index 353efe4f5017..5d241ce94a44 100644
--- a/arch/x86/kernel/cpu/mtrr/generic.c
+++ b/arch/x86/kernel/cpu/mtrr/generic.c
@@ -90,7 +90,7 @@ u8 mtrr_type_lookup(u64 start, u64 end)
90 * Look of multiple ranges matching this address and pick type 90 * Look of multiple ranges matching this address and pick type
91 * as per MTRR precedence 91 * as per MTRR precedence
92 */ 92 */
93 if (!mtrr_state.enabled & 2) { 93 if (!(mtrr_state.enabled & 2)) {
94 return mtrr_state.def_type; 94 return mtrr_state.def_type;
95 } 95 }
96 96
diff --git a/arch/x86/kernel/e820_64.c b/arch/x86/kernel/e820_64.c
index 645ee5e32a27..124480c0008d 100644
--- a/arch/x86/kernel/e820_64.c
+++ b/arch/x86/kernel/e820_64.c
@@ -100,7 +100,7 @@ void __init free_early(unsigned long start, unsigned long end)
100 for (j = i + 1; j < MAX_EARLY_RES && early_res[j].end; j++) 100 for (j = i + 1; j < MAX_EARLY_RES && early_res[j].end; j++)
101 ; 101 ;
102 102
103 memcpy(&early_res[i], &early_res[i + 1], 103 memmove(&early_res[i], &early_res[i + 1],
104 (j - 1 - i) * sizeof(struct early_res)); 104 (j - 1 - i) * sizeof(struct early_res));
105 105
106 early_res[j - 1].end = 0; 106 early_res[j - 1].end = 0;
diff --git a/arch/x86/kernel/smpboot.c b/arch/x86/kernel/smpboot.c
index 04c662ba18f1..84241a256dc8 100644
--- a/arch/x86/kernel/smpboot.c
+++ b/arch/x86/kernel/smpboot.c
@@ -1149,14 +1149,10 @@ static int __init smp_sanity_check(unsigned max_cpus)
1149 "forcing use of dummy APIC emulation.\n"); 1149 "forcing use of dummy APIC emulation.\n");
1150 smpboot_clear_io_apic(); 1150 smpboot_clear_io_apic();
1151#ifdef CONFIG_X86_32 1151#ifdef CONFIG_X86_32
1152 if (nmi_watchdog == NMI_LOCAL_APIC) { 1152 connect_bsp_APIC();
1153 printk(KERN_INFO "activating minimal APIC for"
1154 "NMI watchdog use.\n");
1155 connect_bsp_APIC();
1156 setup_local_APIC();
1157 end_local_APIC_setup();
1158 }
1159#endif 1153#endif
1154 setup_local_APIC();
1155 end_local_APIC_setup();
1160 return -1; 1156 return -1;
1161 } 1157 }
1162 1158
diff --git a/arch/x86/kernel/vsmp_64.c b/arch/x86/kernel/vsmp_64.c
index caf2a26f5cfd..ba8c0b75ab0a 100644
--- a/arch/x86/kernel/vsmp_64.c
+++ b/arch/x86/kernel/vsmp_64.c
@@ -133,7 +133,7 @@ int is_vsmp_box(void)
133 } 133 }
134} 134}
135#else 135#else
136static int __init detect_vsmp_box(void) 136static void __init detect_vsmp_box(void)
137{ 137{
138} 138}
139int is_vsmp_box(void) 139int is_vsmp_box(void)