aboutsummaryrefslogtreecommitdiffstats
path: root/arch/x86
diff options
context:
space:
mode:
authorLinus Torvalds <torvalds@linux-foundation.org>2014-03-31 15:00:10 -0400
committerLinus Torvalds <torvalds@linux-foundation.org>2014-03-31 15:00:10 -0400
commit26a5c0dfbc9c4b1c455821c0a0ea6d6116082397 (patch)
treeb63fde090696e2be3224e15ab6c9d4245f349d3f /arch/x86
parent54cad6270a30edc75276c653ccb81dc313f0fcde (diff)
parentb82ad3d3944193e5f95319c30fd24e39d0d7b510 (diff)
Merge branch 'x86-cleanups-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip
Pull x86 cleanups from Ingo Molnar: "Various smaller cleanups" * 'x86-cleanups-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip: x86, pageattr: Correct WBINVD spelling in comment x86, crash: Unify ifdef x86, boot: Correct max ramdisk size name
Diffstat (limited to 'arch/x86')
-rw-r--r--arch/x86/boot/header.S2
-rw-r--r--arch/x86/kernel/crash.c2
-rw-r--r--arch/x86/mm/pageattr.c6
3 files changed, 4 insertions, 6 deletions
diff --git a/arch/x86/boot/header.S b/arch/x86/boot/header.S
index ec3b8ba68096..46f5a220b0ad 100644
--- a/arch/x86/boot/header.S
+++ b/arch/x86/boot/header.S
@@ -350,7 +350,7 @@ cmd_line_ptr: .long 0 # (Header version 0x0202 or later)
350 # can be located anywhere in 350 # can be located anywhere in
351 # low memory 0x10000 or higher. 351 # low memory 0x10000 or higher.
352 352
353ramdisk_max: .long 0x7fffffff 353initrd_addr_max: .long 0x7fffffff
354 # (Header version 0x0203 or later) 354 # (Header version 0x0203 or later)
355 # The highest safe address for 355 # The highest safe address for
356 # the contents of an initrd 356 # the contents of an initrd
diff --git a/arch/x86/kernel/crash.c b/arch/x86/kernel/crash.c
index a57902efe2d5..507de8066594 100644
--- a/arch/x86/kernel/crash.c
+++ b/arch/x86/kernel/crash.c
@@ -57,9 +57,7 @@ static void kdump_nmi_callback(int cpu, struct pt_regs *regs)
57{ 57{
58#ifdef CONFIG_X86_32 58#ifdef CONFIG_X86_32
59 struct pt_regs fixed_regs; 59 struct pt_regs fixed_regs;
60#endif
61 60
62#ifdef CONFIG_X86_32
63 if (!user_mode_vm(regs)) { 61 if (!user_mode_vm(regs)) {
64 crash_fixup_ss_esp(&fixed_regs, regs); 62 crash_fixup_ss_esp(&fixed_regs, regs);
65 regs = &fixed_regs; 63 regs = &fixed_regs;
diff --git a/arch/x86/mm/pageattr.c b/arch/x86/mm/pageattr.c
index b3b19f46c016..ba957c9b677c 100644
--- a/arch/x86/mm/pageattr.c
+++ b/arch/x86/mm/pageattr.c
@@ -1377,10 +1377,10 @@ static int change_page_attr_set_clr(unsigned long *addr, int numpages,
1377 cache = cache_attr(mask_set); 1377 cache = cache_attr(mask_set);
1378 1378
1379 /* 1379 /*
1380 * On success we use clflush, when the CPU supports it to 1380 * On success we use CLFLUSH, when the CPU supports it to
1381 * avoid the wbindv. If the CPU does not support it and in the 1381 * avoid the WBINVD. If the CPU does not support it and in the
1382 * error case we fall back to cpa_flush_all (which uses 1382 * error case we fall back to cpa_flush_all (which uses
1383 * wbindv): 1383 * WBINVD):
1384 */ 1384 */
1385 if (!ret && cpu_has_clflush) { 1385 if (!ret && cpu_has_clflush) {
1386 if (cpa.flags & (CPA_PAGES_ARRAY | CPA_ARRAY)) { 1386 if (cpa.flags & (CPA_PAGES_ARRAY | CPA_ARRAY)) {