aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAdam Buchbinder <adam.buchbinder@gmail.com>2016-02-23 18:34:30 -0500
committerIngo Molnar <mingo@kernel.org>2016-02-24 02:44:58 -0500
commit6a6256f9e0ebaabf7ded1fef8977a4352dbe7784 (patch)
tree3aa9ed17e0de8deb0ba6689d443962a56dd9bd12
parent1b74dde7c47c19a73ea3e9fac95ac27b5d3d50c5 (diff)
x86: Fix misspellings in comments
Signed-off-by: Adam Buchbinder <adam.buchbinder@gmail.com> Cc: Linus Torvalds <torvalds@linux-foundation.org> Cc: Peter Zijlstra <peterz@infradead.org> Cc: Thomas Gleixner <tglx@linutronix.de> Cc: trivial@kernel.org Signed-off-by: Ingo Molnar <mingo@kernel.org>
-rw-r--r--arch/x86/entry/vdso/vclock_gettime.c2
-rw-r--r--arch/x86/include/asm/ftrace.h2
-rw-r--r--arch/x86/include/asm/rwsem.h2
-rw-r--r--arch/x86/kernel/acpi/boot.c4
-rw-r--r--arch/x86/kernel/apic/apic.c2
-rw-r--r--arch/x86/kernel/apic/x2apic_uv_x.c2
-rw-r--r--arch/x86/kernel/apm_32.c2
-rw-r--r--arch/x86/kernel/cpu/amd.c2
-rw-r--r--arch/x86/kernel/cpu/common.c4
-rw-r--r--arch/x86/kernel/cpu/mtrr/generic.c2
-rw-r--r--arch/x86/kernel/cpu/perf_event.h2
-rw-r--r--arch/x86/kernel/cpu/perf_event_intel_lbr.c2
-rw-r--r--arch/x86/kernel/early_printk.c2
-rw-r--r--arch/x86/kernel/fpu/regset.c2
-rw-r--r--arch/x86/kernel/kexec-bzimage64.c2
-rw-r--r--arch/x86/kernel/kgdb.c4
-rw-r--r--arch/x86/kernel/kvmclock.c2
-rw-r--r--arch/x86/kernel/tsc.c2
-rw-r--r--arch/x86/kvm/mmu.c4
-rw-r--r--arch/x86/kvm/vmx.c4
-rw-r--r--arch/x86/kvm/x86.c2
-rw-r--r--arch/x86/lib/memset_64.S2
-rw-r--r--arch/x86/mm/mpx.c4
-rw-r--r--arch/x86/mm/pat.c2
-rw-r--r--arch/x86/platform/intel-mid/device_libs/platform_bma023.c2
-rw-r--r--arch/x86/platform/intel-mid/device_libs/platform_emc1403.c2
-rw-r--r--arch/x86/platform/intel-mid/device_libs/platform_gpio_keys.c2
-rw-r--r--arch/x86/platform/intel-mid/device_libs/platform_lis331.c2
-rw-r--r--arch/x86/platform/intel-mid/device_libs/platform_max7315.c2
-rw-r--r--arch/x86/platform/intel-mid/device_libs/platform_mpu3050.c2
-rw-r--r--arch/x86/platform/intel-mid/device_libs/platform_msic.c2
-rw-r--r--arch/x86/platform/intel-mid/device_libs/platform_msic_audio.c2
-rw-r--r--arch/x86/platform/intel-mid/device_libs/platform_msic_battery.c2
-rw-r--r--arch/x86/platform/intel-mid/device_libs/platform_msic_gpio.c2
-rw-r--r--arch/x86/platform/intel-mid/device_libs/platform_msic_ocd.c2
-rw-r--r--arch/x86/platform/intel-mid/device_libs/platform_msic_power_btn.c2
-rw-r--r--arch/x86/platform/intel-mid/device_libs/platform_msic_thermal.c2
-rw-r--r--arch/x86/platform/intel-mid/device_libs/platform_pmic_gpio.c2
-rw-r--r--arch/x86/platform/intel-mid/device_libs/platform_tc35876x.c2
-rw-r--r--arch/x86/platform/intel-mid/device_libs/platform_tca6416.c2
-rw-r--r--arch/x86/purgatory/stack.S2
-rw-r--r--arch/x86/xen/mmu.c8
-rw-r--r--arch/x86/xen/xen-head.S2
43 files changed, 52 insertions, 52 deletions
diff --git a/arch/x86/entry/vdso/vclock_gettime.c b/arch/x86/entry/vdso/vclock_gettime.c
index 1a50e09c945b..03c3eb77bfce 100644
--- a/arch/x86/entry/vdso/vclock_gettime.c
+++ b/arch/x86/entry/vdso/vclock_gettime.c
@@ -178,7 +178,7 @@ notrace static cycle_t vread_tsc(void)
178 178
179 /* 179 /*
180 * GCC likes to generate cmov here, but this branch is extremely 180 * GCC likes to generate cmov here, but this branch is extremely
181 * predictable (it's just a funciton of time and the likely is 181 * predictable (it's just a function of time and the likely is
182 * very likely) and there's a data dependence, so force GCC 182 * very likely) and there's a data dependence, so force GCC
183 * to generate a branch instead. I don't barrier() because 183 * to generate a branch instead. I don't barrier() because
184 * we don't actually need a barrier, and if this function 184 * we don't actually need a barrier, and if this function
diff --git a/arch/x86/include/asm/ftrace.h b/arch/x86/include/asm/ftrace.h
index 24938852db30..abbad505dd24 100644
--- a/arch/x86/include/asm/ftrace.h
+++ b/arch/x86/include/asm/ftrace.h
@@ -52,7 +52,7 @@ int ftrace_int3_handler(struct pt_regs *regs);
52 * this screws up the trace output when tracing a ia32 task. 52 * this screws up the trace output when tracing a ia32 task.
53 * Instead of reporting bogus syscalls, just do not trace them. 53 * Instead of reporting bogus syscalls, just do not trace them.
54 * 54 *
55 * If the user realy wants these, then they should use the 55 * If the user really wants these, then they should use the
56 * raw syscall tracepoints with filtering. 56 * raw syscall tracepoints with filtering.
57 */ 57 */
58#define ARCH_TRACE_IGNORE_COMPAT_SYSCALLS 1 58#define ARCH_TRACE_IGNORE_COMPAT_SYSCALLS 1
diff --git a/arch/x86/include/asm/rwsem.h b/arch/x86/include/asm/rwsem.h
index cad82c9c2fde..ceec86eb68e9 100644
--- a/arch/x86/include/asm/rwsem.h
+++ b/arch/x86/include/asm/rwsem.h
@@ -25,7 +25,7 @@
25 * This should be totally fair - if anything is waiting, a process that wants a 25 * This should be totally fair - if anything is waiting, a process that wants a
26 * lock will go to the back of the queue. When the currently active lock is 26 * lock will go to the back of the queue. When the currently active lock is
27 * released, if there's a writer at the front of the queue, then that and only 27 * released, if there's a writer at the front of the queue, then that and only
28 * that will be woken up; if there's a bunch of consequtive readers at the 28 * that will be woken up; if there's a bunch of consecutive readers at the
29 * front, then they'll all be woken up, but no other readers will be. 29 * front, then they'll all be woken up, but no other readers will be.
30 */ 30 */
31 31
diff --git a/arch/x86/kernel/acpi/boot.c b/arch/x86/kernel/acpi/boot.c
index e75907601a41..8c2f1ef6ca23 100644
--- a/arch/x86/kernel/acpi/boot.c
+++ b/arch/x86/kernel/acpi/boot.c
@@ -956,7 +956,7 @@ static int __init early_acpi_parse_madt_lapic_addr_ovr(void)
956 956
957 /* 957 /*
958 * Note that the LAPIC address is obtained from the MADT (32-bit value) 958 * Note that the LAPIC address is obtained from the MADT (32-bit value)
959 * and (optionally) overriden by a LAPIC_ADDR_OVR entry (64-bit value). 959 * and (optionally) overridden by a LAPIC_ADDR_OVR entry (64-bit value).
960 */ 960 */
961 961
962 count = acpi_table_parse_madt(ACPI_MADT_TYPE_LOCAL_APIC_OVERRIDE, 962 count = acpi_table_parse_madt(ACPI_MADT_TYPE_LOCAL_APIC_OVERRIDE,
@@ -984,7 +984,7 @@ static int __init acpi_parse_madt_lapic_entries(void)
984 984
985 /* 985 /*
986 * Note that the LAPIC address is obtained from the MADT (32-bit value) 986 * Note that the LAPIC address is obtained from the MADT (32-bit value)
987 * and (optionally) overriden by a LAPIC_ADDR_OVR entry (64-bit value). 987 * and (optionally) overridden by a LAPIC_ADDR_OVR entry (64-bit value).
988 */ 988 */
989 989
990 count = acpi_table_parse_madt(ACPI_MADT_TYPE_LOCAL_APIC_OVERRIDE, 990 count = acpi_table_parse_madt(ACPI_MADT_TYPE_LOCAL_APIC_OVERRIDE,
diff --git a/arch/x86/kernel/apic/apic.c b/arch/x86/kernel/apic/apic.c
index 8a5cddac7d44..3b892bbdd902 100644
--- a/arch/x86/kernel/apic/apic.c
+++ b/arch/x86/kernel/apic/apic.c
@@ -1611,7 +1611,7 @@ void __init enable_IR_x2apic(void)
1611 legacy_pic->mask_all(); 1611 legacy_pic->mask_all();
1612 mask_ioapic_entries(); 1612 mask_ioapic_entries();
1613 1613
1614 /* If irq_remapping_prepare() succeded, try to enable it */ 1614 /* If irq_remapping_prepare() succeeded, try to enable it */
1615 if (ir_stat >= 0) 1615 if (ir_stat >= 0)
1616 ir_stat = try_to_enable_IR(); 1616 ir_stat = try_to_enable_IR();
1617 /* ir_stat contains the remap mode or an error code */ 1617 /* ir_stat contains the remap mode or an error code */
diff --git a/arch/x86/kernel/apic/x2apic_uv_x.c b/arch/x86/kernel/apic/x2apic_uv_x.c
index 624db00583f4..278070381aee 100644
--- a/arch/x86/kernel/apic/x2apic_uv_x.c
+++ b/arch/x86/kernel/apic/x2apic_uv_x.c
@@ -860,7 +860,7 @@ int uv_set_vga_state(struct pci_dev *pdev, bool decode,
860 */ 860 */
861void uv_cpu_init(void) 861void uv_cpu_init(void)
862{ 862{
863 /* CPU 0 initilization will be done via uv_system_init. */ 863 /* CPU 0 initialization will be done via uv_system_init. */
864 if (!uv_blade_info) 864 if (!uv_blade_info)
865 return; 865 return;
866 866
diff --git a/arch/x86/kernel/apm_32.c b/arch/x86/kernel/apm_32.c
index 052c9c3026cc..9307f182fe30 100644
--- a/arch/x86/kernel/apm_32.c
+++ b/arch/x86/kernel/apm_32.c
@@ -1088,7 +1088,7 @@ static int apm_get_battery_status(u_short which, u_short *status,
1088 * @device: identity of device 1088 * @device: identity of device
1089 * @enable: on/off 1089 * @enable: on/off
1090 * 1090 *
1091 * Activate or deactive power management on either a specific device 1091 * Activate or deactivate power management on either a specific device
1092 * or the entire system (%APM_DEVICE_ALL). 1092 * or the entire system (%APM_DEVICE_ALL).
1093 */ 1093 */
1094 1094
diff --git a/arch/x86/kernel/cpu/amd.c b/arch/x86/kernel/cpu/amd.c
index 97c59fd60702..b39338c4b260 100644
--- a/arch/x86/kernel/cpu/amd.c
+++ b/arch/x86/kernel/cpu/amd.c
@@ -82,7 +82,7 @@ static void init_amd_k5(struct cpuinfo_x86 *c)
82#ifdef CONFIG_X86_32 82#ifdef CONFIG_X86_32
83/* 83/*
84 * General Systems BIOSen alias the cpu frequency registers 84 * General Systems BIOSen alias the cpu frequency registers
85 * of the Elan at 0x000df000. Unfortuantly, one of the Linux 85 * of the Elan at 0x000df000. Unfortunately, one of the Linux
86 * drivers subsequently pokes it, and changes the CPU speed. 86 * drivers subsequently pokes it, and changes the CPU speed.
87 * Workaround : Remove the unneeded alias. 87 * Workaround : Remove the unneeded alias.
88 */ 88 */
diff --git a/arch/x86/kernel/cpu/common.c b/arch/x86/kernel/cpu/common.c
index 68a80e9b67fc..7c3120f5177b 100644
--- a/arch/x86/kernel/cpu/common.c
+++ b/arch/x86/kernel/cpu/common.c
@@ -884,7 +884,7 @@ static void identify_cpu(struct cpuinfo_x86 *c)
884 if (this_cpu->c_identify) 884 if (this_cpu->c_identify)
885 this_cpu->c_identify(c); 885 this_cpu->c_identify(c);
886 886
887 /* Clear/Set all flags overriden by options, after probe */ 887 /* Clear/Set all flags overridden by options, after probe */
888 for (i = 0; i < NCAPINTS; i++) { 888 for (i = 0; i < NCAPINTS; i++) {
889 c->x86_capability[i] &= ~cpu_caps_cleared[i]; 889 c->x86_capability[i] &= ~cpu_caps_cleared[i];
890 c->x86_capability[i] |= cpu_caps_set[i]; 890 c->x86_capability[i] |= cpu_caps_set[i];
@@ -943,7 +943,7 @@ static void identify_cpu(struct cpuinfo_x86 *c)
943 x86_init_cache_qos(c); 943 x86_init_cache_qos(c);
944 944
945 /* 945 /*
946 * Clear/Set all flags overriden by options, need do it 946 * Clear/Set all flags overridden by options, need do it
947 * before following smp all cpus cap AND. 947 * before following smp all cpus cap AND.
948 */ 948 */
949 for (i = 0; i < NCAPINTS; i++) { 949 for (i = 0; i < NCAPINTS; i++) {
diff --git a/arch/x86/kernel/cpu/mtrr/generic.c b/arch/x86/kernel/cpu/mtrr/generic.c
index fcbcb2f678ca..19f57360dfd2 100644
--- a/arch/x86/kernel/cpu/mtrr/generic.c
+++ b/arch/x86/kernel/cpu/mtrr/generic.c
@@ -42,7 +42,7 @@ EXPORT_SYMBOL_GPL(mtrr_state);
42 * "BIOS and Kernel Developer's Guide for the AMD Athlon 64 and AMD 42 * "BIOS and Kernel Developer's Guide for the AMD Athlon 64 and AMD
43 * Opteron Processors" (26094 Rev. 3.30 February 2006), section 43 * Opteron Processors" (26094 Rev. 3.30 February 2006), section
44 * "13.2.1.2 SYSCFG Register": "The MtrrFixDramModEn bit should be set 44 * "13.2.1.2 SYSCFG Register": "The MtrrFixDramModEn bit should be set
45 * to 1 during BIOS initalization of the fixed MTRRs, then cleared to 45 * to 1 during BIOS initialization of the fixed MTRRs, then cleared to
46 * 0 for operation." 46 * 0 for operation."
47 */ 47 */
48static inline void k8_check_syscfg_dram_mod_en(void) 48static inline void k8_check_syscfg_dram_mod_en(void)
diff --git a/arch/x86/kernel/cpu/perf_event.h b/arch/x86/kernel/cpu/perf_event.h
index 7bb61e32fb29..3ea127f05d0d 100644
--- a/arch/x86/kernel/cpu/perf_event.h
+++ b/arch/x86/kernel/cpu/perf_event.h
@@ -272,7 +272,7 @@ struct cpu_hw_events {
272 * events to select for counter rescheduling. 272 * events to select for counter rescheduling.
273 * 273 *
274 * Care must be taken as the rescheduling algorithm is O(n!) which 274 * Care must be taken as the rescheduling algorithm is O(n!) which
275 * will increase scheduling cycles for an over-commited system 275 * will increase scheduling cycles for an over-committed system
276 * dramatically. The number of such EVENT_CONSTRAINT_OVERLAP() macros 276 * dramatically. The number of such EVENT_CONSTRAINT_OVERLAP() macros
277 * and its counter masks must be kept at a minimum. 277 * and its counter masks must be kept at a minimum.
278 */ 278 */
diff --git a/arch/x86/kernel/cpu/perf_event_intel_lbr.c b/arch/x86/kernel/cpu/perf_event_intel_lbr.c
index 653f88d25987..288f22ddc6d8 100644
--- a/arch/x86/kernel/cpu/perf_event_intel_lbr.c
+++ b/arch/x86/kernel/cpu/perf_event_intel_lbr.c
@@ -649,7 +649,7 @@ int intel_pmu_setup_lbr_filter(struct perf_event *event)
649 649
650/* 650/*
651 * return the type of control flow change at address "from" 651 * return the type of control flow change at address "from"
652 * intruction is not necessarily a branch (in case of interrupt). 652 * instruction is not necessarily a branch (in case of interrupt).
653 * 653 *
654 * The branch type returned also includes the priv level of the 654 * The branch type returned also includes the priv level of the
655 * target of the control flow change (X86_BR_USER, X86_BR_KERNEL). 655 * target of the control flow change (X86_BR_USER, X86_BR_KERNEL).
diff --git a/arch/x86/kernel/early_printk.c b/arch/x86/kernel/early_printk.c
index 21bf92490a7b..8a121991e5ba 100644
--- a/arch/x86/kernel/early_printk.c
+++ b/arch/x86/kernel/early_printk.c
@@ -287,7 +287,7 @@ static __init void early_pci_serial_init(char *s)
287 } 287 }
288 288
289 /* 289 /*
290 * Lastly, initalize the hardware 290 * Lastly, initialize the hardware
291 */ 291 */
292 if (*s) { 292 if (*s) {
293 if (strcmp(s, "nocfg") == 0) 293 if (strcmp(s, "nocfg") == 0)
diff --git a/arch/x86/kernel/fpu/regset.c b/arch/x86/kernel/fpu/regset.c
index 0bc3490420c5..8bd1c003942a 100644
--- a/arch/x86/kernel/fpu/regset.c
+++ b/arch/x86/kernel/fpu/regset.c
@@ -8,7 +8,7 @@
8/* 8/*
9 * The xstateregs_active() routine is the same as the regset_fpregs_active() routine, 9 * The xstateregs_active() routine is the same as the regset_fpregs_active() routine,
10 * as the "regset->n" for the xstate regset will be updated based on the feature 10 * as the "regset->n" for the xstate regset will be updated based on the feature
11 * capabilites supported by the xsave. 11 * capabilities supported by the xsave.
12 */ 12 */
13int regset_fpregs_active(struct task_struct *target, const struct user_regset *regset) 13int regset_fpregs_active(struct task_struct *target, const struct user_regset *regset)
14{ 14{
diff --git a/arch/x86/kernel/kexec-bzimage64.c b/arch/x86/kernel/kexec-bzimage64.c
index 0f8a6bbaaa44..2af478e3fd4e 100644
--- a/arch/x86/kernel/kexec-bzimage64.c
+++ b/arch/x86/kernel/kexec-bzimage64.c
@@ -271,7 +271,7 @@ static int bzImage64_probe(const char *buf, unsigned long len)
271 int ret = -ENOEXEC; 271 int ret = -ENOEXEC;
272 struct setup_header *header; 272 struct setup_header *header;
273 273
274 /* kernel should be atleast two sectors long */ 274 /* kernel should be at least two sectors long */
275 if (len < 2 * 512) { 275 if (len < 2 * 512) {
276 pr_err("File is too short to be a bzImage\n"); 276 pr_err("File is too short to be a bzImage\n");
277 return ret; 277 return ret;
diff --git a/arch/x86/kernel/kgdb.c b/arch/x86/kernel/kgdb.c
index 44256a62702b..631a7087e332 100644
--- a/arch/x86/kernel/kgdb.c
+++ b/arch/x86/kernel/kgdb.c
@@ -609,9 +609,9 @@ static struct notifier_block kgdb_notifier = {
609}; 609};
610 610
611/** 611/**
612 * kgdb_arch_init - Perform any architecture specific initalization. 612 * kgdb_arch_init - Perform any architecture specific initialization.
613 * 613 *
614 * This function will handle the initalization of any architecture 614 * This function will handle the initialization of any architecture
615 * specific callbacks. 615 * specific callbacks.
616 */ 616 */
617int kgdb_arch_init(void) 617int kgdb_arch_init(void)
diff --git a/arch/x86/kernel/kvmclock.c b/arch/x86/kernel/kvmclock.c
index 72cef58693c7..1d39bfbd26bb 100644
--- a/arch/x86/kernel/kvmclock.c
+++ b/arch/x86/kernel/kvmclock.c
@@ -226,7 +226,7 @@ static void kvm_setup_secondary_clock(void)
226 * registered memory location. If the guest happens to shutdown, this memory 226 * registered memory location. If the guest happens to shutdown, this memory
227 * won't be valid. In cases like kexec, in which you install a new kernel, this 227 * won't be valid. In cases like kexec, in which you install a new kernel, this
228 * means a random memory location will be kept being written. So before any 228 * means a random memory location will be kept being written. So before any
229 * kind of shutdown from our side, we unregister the clock by writting anything 229 * kind of shutdown from our side, we unregister the clock by writing anything
230 * that does not have the 'enable' bit set in the msr 230 * that does not have the 'enable' bit set in the msr
231 */ 231 */
232#ifdef CONFIG_KEXEC_CORE 232#ifdef CONFIG_KEXEC_CORE
diff --git a/arch/x86/kernel/tsc.c b/arch/x86/kernel/tsc.c
index 3d743da828d3..acec49b302d1 100644
--- a/arch/x86/kernel/tsc.c
+++ b/arch/x86/kernel/tsc.c
@@ -876,7 +876,7 @@ void tsc_restore_sched_clock_state(void)
876 local_irq_save(flags); 876 local_irq_save(flags);
877 877
878 /* 878 /*
879 * We're comming out of suspend, there's no concurrency yet; don't 879 * We're coming out of suspend, there's no concurrency yet; don't
880 * bother being nice about the RCU stuff, just write to both 880 * bother being nice about the RCU stuff, just write to both
881 * data fields. 881 * data fields.
882 */ 882 */
diff --git a/arch/x86/kvm/mmu.c b/arch/x86/kvm/mmu.c
index 95a955de5964..e1bb320dd5b2 100644
--- a/arch/x86/kvm/mmu.c
+++ b/arch/x86/kvm/mmu.c
@@ -478,7 +478,7 @@ static bool spte_is_locklessly_modifiable(u64 spte)
478static bool spte_has_volatile_bits(u64 spte) 478static bool spte_has_volatile_bits(u64 spte)
479{ 479{
480 /* 480 /*
481 * Always atomicly update spte if it can be updated 481 * Always atomically update spte if it can be updated
482 * out of mmu-lock, it can ensure dirty bit is not lost, 482 * out of mmu-lock, it can ensure dirty bit is not lost,
483 * also, it can help us to get a stable is_writable_pte() 483 * also, it can help us to get a stable is_writable_pte()
484 * to ensure tlb flush is not missed. 484 * to ensure tlb flush is not missed.
@@ -549,7 +549,7 @@ static bool mmu_spte_update(u64 *sptep, u64 new_spte)
549 549
550 /* 550 /*
551 * For the spte updated out of mmu-lock is safe, since 551 * For the spte updated out of mmu-lock is safe, since
552 * we always atomicly update it, see the comments in 552 * we always atomically update it, see the comments in
553 * spte_has_volatile_bits(). 553 * spte_has_volatile_bits().
554 */ 554 */
555 if (spte_is_locklessly_modifiable(old_spte) && 555 if (spte_is_locklessly_modifiable(old_spte) &&
diff --git a/arch/x86/kvm/vmx.c b/arch/x86/kvm/vmx.c
index e2951b6edbbc..34208bf57c35 100644
--- a/arch/x86/kvm/vmx.c
+++ b/arch/x86/kvm/vmx.c
@@ -5475,7 +5475,7 @@ static int handle_set_cr4(struct kvm_vcpu *vcpu, unsigned long val)
5475 return kvm_set_cr4(vcpu, val); 5475 return kvm_set_cr4(vcpu, val);
5476} 5476}
5477 5477
5478/* called to set cr0 as approriate for clts instruction exit. */ 5478/* called to set cr0 as appropriate for clts instruction exit. */
5479static void handle_clts(struct kvm_vcpu *vcpu) 5479static void handle_clts(struct kvm_vcpu *vcpu)
5480{ 5480{
5481 if (is_guest_mode(vcpu)) { 5481 if (is_guest_mode(vcpu)) {
@@ -7223,7 +7223,7 @@ static int handle_vmwrite(struct kvm_vcpu *vcpu)
7223 /* The value to write might be 32 or 64 bits, depending on L1's long 7223 /* The value to write might be 32 or 64 bits, depending on L1's long
7224 * mode, and eventually we need to write that into a field of several 7224 * mode, and eventually we need to write that into a field of several
7225 * possible lengths. The code below first zero-extends the value to 64 7225 * possible lengths. The code below first zero-extends the value to 64
7226 * bit (field_value), and then copies only the approriate number of 7226 * bit (field_value), and then copies only the appropriate number of
7227 * bits into the vmcs12 field. 7227 * bits into the vmcs12 field.
7228 */ 7228 */
7229 u64 field_value = 0; 7229 u64 field_value = 0;
diff --git a/arch/x86/kvm/x86.c b/arch/x86/kvm/x86.c
index 4244c2baf57d..429c3f5fc618 100644
--- a/arch/x86/kvm/x86.c
+++ b/arch/x86/kvm/x86.c
@@ -1562,7 +1562,7 @@ static cycle_t read_tsc(void)
1562 1562
1563 /* 1563 /*
1564 * GCC likes to generate cmov here, but this branch is extremely 1564 * GCC likes to generate cmov here, but this branch is extremely
1565 * predictable (it's just a funciton of time and the likely is 1565 * predictable (it's just a function of time and the likely is
1566 * very likely) and there's a data dependence, so force GCC 1566 * very likely) and there's a data dependence, so force GCC
1567 * to generate a branch instead. I don't barrier() because 1567 * to generate a branch instead. I don't barrier() because
1568 * we don't actually need a barrier, and if this function 1568 * we don't actually need a barrier, and if this function
diff --git a/arch/x86/lib/memset_64.S b/arch/x86/lib/memset_64.S
index 2661fad05827..f9962ad4e9c4 100644
--- a/arch/x86/lib/memset_64.S
+++ b/arch/x86/lib/memset_64.S
@@ -9,7 +9,7 @@
9/* 9/*
10 * ISO C memset - set a memory block to a byte value. This function uses fast 10 * ISO C memset - set a memory block to a byte value. This function uses fast
11 * string to get better performance than the original function. The code is 11 * string to get better performance than the original function. The code is
12 * simpler and shorter than the orignal function as well. 12 * simpler and shorter than the original function as well.
13 * 13 *
14 * rdi destination 14 * rdi destination
15 * rsi value (char) 15 * rsi value (char)
diff --git a/arch/x86/mm/mpx.c b/arch/x86/mm/mpx.c
index b2fd67da1701..cca5174f86fe 100644
--- a/arch/x86/mm/mpx.c
+++ b/arch/x86/mm/mpx.c
@@ -728,14 +728,14 @@ static inline unsigned long bd_entry_virt_space(struct mm_struct *mm)
728 728
729 /* 729 /*
730 * This covers 32-bit emulation as well as 32-bit kernels 730 * This covers 32-bit emulation as well as 32-bit kernels
731 * running on 64-bit harware. 731 * running on 64-bit hardware.
732 */ 732 */
733 if (!is_64bit_mm(mm)) 733 if (!is_64bit_mm(mm))
734 return (4ULL * GB) / MPX_BD_NR_ENTRIES_32; 734 return (4ULL * GB) / MPX_BD_NR_ENTRIES_32;
735 735
736 /* 736 /*
737 * 'x86_virt_bits' returns what the hardware is capable 737 * 'x86_virt_bits' returns what the hardware is capable
738 * of, and returns the full >32-bit adddress space when 738 * of, and returns the full >32-bit address space when
739 * running 32-bit kernels on 64-bit hardware. 739 * running 32-bit kernels on 64-bit hardware.
740 */ 740 */
741 virt_space = (1ULL << boot_cpu_data.x86_virt_bits); 741 virt_space = (1ULL << boot_cpu_data.x86_virt_bits);
diff --git a/arch/x86/mm/pat.c b/arch/x86/mm/pat.c
index f4ae536b0914..fa14b04b9f64 100644
--- a/arch/x86/mm/pat.c
+++ b/arch/x86/mm/pat.c
@@ -149,7 +149,7 @@ enum {
149 PAT_WT = 4, /* Write Through */ 149 PAT_WT = 4, /* Write Through */
150 PAT_WP = 5, /* Write Protected */ 150 PAT_WP = 5, /* Write Protected */
151 PAT_WB = 6, /* Write Back (default) */ 151 PAT_WB = 6, /* Write Back (default) */
152 PAT_UC_MINUS = 7, /* UC, but can be overriden by MTRR */ 152 PAT_UC_MINUS = 7, /* UC, but can be overridden by MTRR */
153}; 153};
154 154
155#define CM(c) (_PAGE_CACHE_MODE_ ## c) 155#define CM(c) (_PAGE_CACHE_MODE_ ## c)
diff --git a/arch/x86/platform/intel-mid/device_libs/platform_bma023.c b/arch/x86/platform/intel-mid/device_libs/platform_bma023.c
index 0ae7f2ae2296..c26cf393d35a 100644
--- a/arch/x86/platform/intel-mid/device_libs/platform_bma023.c
+++ b/arch/x86/platform/intel-mid/device_libs/platform_bma023.c
@@ -1,5 +1,5 @@
1/* 1/*
2 * platform_bma023.c: bma023 platform data initilization file 2 * platform_bma023.c: bma023 platform data initialization file
3 * 3 *
4 * (C) Copyright 2013 Intel Corporation 4 * (C) Copyright 2013 Intel Corporation
5 * 5 *
diff --git a/arch/x86/platform/intel-mid/device_libs/platform_emc1403.c b/arch/x86/platform/intel-mid/device_libs/platform_emc1403.c
index 69a783689d21..c259fb6c8f4f 100644
--- a/arch/x86/platform/intel-mid/device_libs/platform_emc1403.c
+++ b/arch/x86/platform/intel-mid/device_libs/platform_emc1403.c
@@ -1,5 +1,5 @@
1/* 1/*
2 * platform_emc1403.c: emc1403 platform data initilization file 2 * platform_emc1403.c: emc1403 platform data initialization file
3 * 3 *
4 * (C) Copyright 2013 Intel Corporation 4 * (C) Copyright 2013 Intel Corporation
5 * Author: Sathyanarayanan Kuppuswamy <sathyanarayanan.kuppuswamy@intel.com> 5 * Author: Sathyanarayanan Kuppuswamy <sathyanarayanan.kuppuswamy@intel.com>
diff --git a/arch/x86/platform/intel-mid/device_libs/platform_gpio_keys.c b/arch/x86/platform/intel-mid/device_libs/platform_gpio_keys.c
index dccae6b0413f..52534ec29765 100644
--- a/arch/x86/platform/intel-mid/device_libs/platform_gpio_keys.c
+++ b/arch/x86/platform/intel-mid/device_libs/platform_gpio_keys.c
@@ -1,5 +1,5 @@
1/* 1/*
2 * platform_gpio_keys.c: gpio_keys platform data initilization file 2 * platform_gpio_keys.c: gpio_keys platform data initialization file
3 * 3 *
4 * (C) Copyright 2013 Intel Corporation 4 * (C) Copyright 2013 Intel Corporation
5 * Author: Sathyanarayanan Kuppuswamy <sathyanarayanan.kuppuswamy@intel.com> 5 * Author: Sathyanarayanan Kuppuswamy <sathyanarayanan.kuppuswamy@intel.com>
diff --git a/arch/x86/platform/intel-mid/device_libs/platform_lis331.c b/arch/x86/platform/intel-mid/device_libs/platform_lis331.c
index 54226de7541a..a35cf912de43 100644
--- a/arch/x86/platform/intel-mid/device_libs/platform_lis331.c
+++ b/arch/x86/platform/intel-mid/device_libs/platform_lis331.c
@@ -1,5 +1,5 @@
1/* 1/*
2 * platform_lis331.c: lis331 platform data initilization file 2 * platform_lis331.c: lis331 platform data initialization file
3 * 3 *
4 * (C) Copyright 2013 Intel Corporation 4 * (C) Copyright 2013 Intel Corporation
5 * Author: Sathyanarayanan Kuppuswamy <sathyanarayanan.kuppuswamy@intel.com> 5 * Author: Sathyanarayanan Kuppuswamy <sathyanarayanan.kuppuswamy@intel.com>
diff --git a/arch/x86/platform/intel-mid/device_libs/platform_max7315.c b/arch/x86/platform/intel-mid/device_libs/platform_max7315.c
index 2c8acbc1e9ad..6e075afa7877 100644
--- a/arch/x86/platform/intel-mid/device_libs/platform_max7315.c
+++ b/arch/x86/platform/intel-mid/device_libs/platform_max7315.c
@@ -1,5 +1,5 @@
1/* 1/*
2 * platform_max7315.c: max7315 platform data initilization file 2 * platform_max7315.c: max7315 platform data initialization file
3 * 3 *
4 * (C) Copyright 2013 Intel Corporation 4 * (C) Copyright 2013 Intel Corporation
5 * Author: Sathyanarayanan Kuppuswamy <sathyanarayanan.kuppuswamy@intel.com> 5 * Author: Sathyanarayanan Kuppuswamy <sathyanarayanan.kuppuswamy@intel.com>
diff --git a/arch/x86/platform/intel-mid/device_libs/platform_mpu3050.c b/arch/x86/platform/intel-mid/device_libs/platform_mpu3050.c
index cfe9a47a1e87..ee22864bbc2f 100644
--- a/arch/x86/platform/intel-mid/device_libs/platform_mpu3050.c
+++ b/arch/x86/platform/intel-mid/device_libs/platform_mpu3050.c
@@ -1,5 +1,5 @@
1/* 1/*
2 * platform_mpu3050.c: mpu3050 platform data initilization file 2 * platform_mpu3050.c: mpu3050 platform data initialization file
3 * 3 *
4 * (C) Copyright 2013 Intel Corporation 4 * (C) Copyright 2013 Intel Corporation
5 * Author: Sathyanarayanan Kuppuswamy <sathyanarayanan.kuppuswamy@intel.com> 5 * Author: Sathyanarayanan Kuppuswamy <sathyanarayanan.kuppuswamy@intel.com>
diff --git a/arch/x86/platform/intel-mid/device_libs/platform_msic.c b/arch/x86/platform/intel-mid/device_libs/platform_msic.c
index 9f4a775a69d6..e421106c11cf 100644
--- a/arch/x86/platform/intel-mid/device_libs/platform_msic.c
+++ b/arch/x86/platform/intel-mid/device_libs/platform_msic.c
@@ -1,5 +1,5 @@
1/* 1/*
2 * platform_msic.c: MSIC platform data initilization file 2 * platform_msic.c: MSIC platform data initialization file
3 * 3 *
4 * (C) Copyright 2013 Intel Corporation 4 * (C) Copyright 2013 Intel Corporation
5 * Author: Sathyanarayanan Kuppuswamy <sathyanarayanan.kuppuswamy@intel.com> 5 * Author: Sathyanarayanan Kuppuswamy <sathyanarayanan.kuppuswamy@intel.com>
diff --git a/arch/x86/platform/intel-mid/device_libs/platform_msic_audio.c b/arch/x86/platform/intel-mid/device_libs/platform_msic_audio.c
index 29629397d2b3..cb3490ecb341 100644
--- a/arch/x86/platform/intel-mid/device_libs/platform_msic_audio.c
+++ b/arch/x86/platform/intel-mid/device_libs/platform_msic_audio.c
@@ -1,5 +1,5 @@
1/* 1/*
2 * platform_msic_audio.c: MSIC audio platform data initilization file 2 * platform_msic_audio.c: MSIC audio platform data initialization file
3 * 3 *
4 * (C) Copyright 2013 Intel Corporation 4 * (C) Copyright 2013 Intel Corporation
5 * Author: Sathyanarayanan Kuppuswamy <sathyanarayanan.kuppuswamy@intel.com> 5 * Author: Sathyanarayanan Kuppuswamy <sathyanarayanan.kuppuswamy@intel.com>
diff --git a/arch/x86/platform/intel-mid/device_libs/platform_msic_battery.c b/arch/x86/platform/intel-mid/device_libs/platform_msic_battery.c
index f446c33df1a8..4f72193939a6 100644
--- a/arch/x86/platform/intel-mid/device_libs/platform_msic_battery.c
+++ b/arch/x86/platform/intel-mid/device_libs/platform_msic_battery.c
@@ -1,5 +1,5 @@
1/* 1/*
2 * platform_msic_battery.c: MSIC battery platform data initilization file 2 * platform_msic_battery.c: MSIC battery platform data initialization file
3 * 3 *
4 * (C) Copyright 2013 Intel Corporation 4 * (C) Copyright 2013 Intel Corporation
5 * Author: Sathyanarayanan Kuppuswamy <sathyanarayanan.kuppuswamy@intel.com> 5 * Author: Sathyanarayanan Kuppuswamy <sathyanarayanan.kuppuswamy@intel.com>
diff --git a/arch/x86/platform/intel-mid/device_libs/platform_msic_gpio.c b/arch/x86/platform/intel-mid/device_libs/platform_msic_gpio.c
index 2a4f7b1dd917..70de5b531ba0 100644
--- a/arch/x86/platform/intel-mid/device_libs/platform_msic_gpio.c
+++ b/arch/x86/platform/intel-mid/device_libs/platform_msic_gpio.c
@@ -1,5 +1,5 @@
1/* 1/*
2 * platform_msic_gpio.c: MSIC GPIO platform data initilization file 2 * platform_msic_gpio.c: MSIC GPIO platform data initialization file
3 * 3 *
4 * (C) Copyright 2013 Intel Corporation 4 * (C) Copyright 2013 Intel Corporation
5 * Author: Sathyanarayanan Kuppuswamy <sathyanarayanan.kuppuswamy@intel.com> 5 * Author: Sathyanarayanan Kuppuswamy <sathyanarayanan.kuppuswamy@intel.com>
diff --git a/arch/x86/platform/intel-mid/device_libs/platform_msic_ocd.c b/arch/x86/platform/intel-mid/device_libs/platform_msic_ocd.c
index 6497111ddb54..3d7c2011b6cf 100644
--- a/arch/x86/platform/intel-mid/device_libs/platform_msic_ocd.c
+++ b/arch/x86/platform/intel-mid/device_libs/platform_msic_ocd.c
@@ -1,5 +1,5 @@
1/* 1/*
2 * platform_msic_ocd.c: MSIC OCD platform data initilization file 2 * platform_msic_ocd.c: MSIC OCD platform data initialization file
3 * 3 *
4 * (C) Copyright 2013 Intel Corporation 4 * (C) Copyright 2013 Intel Corporation
5 * Author: Sathyanarayanan Kuppuswamy <sathyanarayanan.kuppuswamy@intel.com> 5 * Author: Sathyanarayanan Kuppuswamy <sathyanarayanan.kuppuswamy@intel.com>
diff --git a/arch/x86/platform/intel-mid/device_libs/platform_msic_power_btn.c b/arch/x86/platform/intel-mid/device_libs/platform_msic_power_btn.c
index 83a3459bc337..038f618fbc52 100644
--- a/arch/x86/platform/intel-mid/device_libs/platform_msic_power_btn.c
+++ b/arch/x86/platform/intel-mid/device_libs/platform_msic_power_btn.c
@@ -1,5 +1,5 @@
1/* 1/*
2 * platform_msic_power_btn.c: MSIC power btn platform data initilization file 2 * platform_msic_power_btn.c: MSIC power btn platform data initialization file
3 * 3 *
4 * (C) Copyright 2013 Intel Corporation 4 * (C) Copyright 2013 Intel Corporation
5 * Author: Sathyanarayanan Kuppuswamy <sathyanarayanan.kuppuswamy@intel.com> 5 * Author: Sathyanarayanan Kuppuswamy <sathyanarayanan.kuppuswamy@intel.com>
diff --git a/arch/x86/platform/intel-mid/device_libs/platform_msic_thermal.c b/arch/x86/platform/intel-mid/device_libs/platform_msic_thermal.c
index a351878b96bc..114a5755b1e4 100644
--- a/arch/x86/platform/intel-mid/device_libs/platform_msic_thermal.c
+++ b/arch/x86/platform/intel-mid/device_libs/platform_msic_thermal.c
@@ -1,5 +1,5 @@
1/* 1/*
2 * platform_msic_thermal.c: msic_thermal platform data initilization file 2 * platform_msic_thermal.c: msic_thermal platform data initialization file
3 * 3 *
4 * (C) Copyright 2013 Intel Corporation 4 * (C) Copyright 2013 Intel Corporation
5 * Author: Sathyanarayanan Kuppuswamy <sathyanarayanan.kuppuswamy@intel.com> 5 * Author: Sathyanarayanan Kuppuswamy <sathyanarayanan.kuppuswamy@intel.com>
diff --git a/arch/x86/platform/intel-mid/device_libs/platform_pmic_gpio.c b/arch/x86/platform/intel-mid/device_libs/platform_pmic_gpio.c
index 65c2a9a19db4..e30cb62e3300 100644
--- a/arch/x86/platform/intel-mid/device_libs/platform_pmic_gpio.c
+++ b/arch/x86/platform/intel-mid/device_libs/platform_pmic_gpio.c
@@ -1,5 +1,5 @@
1/* 1/*
2 * platform_pmic_gpio.c: PMIC GPIO platform data initilization file 2 * platform_pmic_gpio.c: PMIC GPIO platform data initialization file
3 * 3 *
4 * (C) Copyright 2013 Intel Corporation 4 * (C) Copyright 2013 Intel Corporation
5 * Author: Sathyanarayanan Kuppuswamy <sathyanarayanan.kuppuswamy@intel.com> 5 * Author: Sathyanarayanan Kuppuswamy <sathyanarayanan.kuppuswamy@intel.com>
diff --git a/arch/x86/platform/intel-mid/device_libs/platform_tc35876x.c b/arch/x86/platform/intel-mid/device_libs/platform_tc35876x.c
index 740fc757050c..b1526b95fd43 100644
--- a/arch/x86/platform/intel-mid/device_libs/platform_tc35876x.c
+++ b/arch/x86/platform/intel-mid/device_libs/platform_tc35876x.c
@@ -1,5 +1,5 @@
1/* 1/*
2 * platform_tc35876x.c: tc35876x platform data initilization file 2 * platform_tc35876x.c: tc35876x platform data initialization file
3 * 3 *
4 * (C) Copyright 2013 Intel Corporation 4 * (C) Copyright 2013 Intel Corporation
5 * Author: Sathyanarayanan Kuppuswamy <sathyanarayanan.kuppuswamy@intel.com> 5 * Author: Sathyanarayanan Kuppuswamy <sathyanarayanan.kuppuswamy@intel.com>
diff --git a/arch/x86/platform/intel-mid/device_libs/platform_tca6416.c b/arch/x86/platform/intel-mid/device_libs/platform_tca6416.c
index 33be0b3be6e1..4f41372ce400 100644
--- a/arch/x86/platform/intel-mid/device_libs/platform_tca6416.c
+++ b/arch/x86/platform/intel-mid/device_libs/platform_tca6416.c
@@ -1,5 +1,5 @@
1/* 1/*
2 * platform_tca6416.c: tca6416 platform data initilization file 2 * platform_tca6416.c: tca6416 platform data initialization file
3 * 3 *
4 * (C) Copyright 2013 Intel Corporation 4 * (C) Copyright 2013 Intel Corporation
5 * Author: Sathyanarayanan Kuppuswamy <sathyanarayanan.kuppuswamy@intel.com> 5 * Author: Sathyanarayanan Kuppuswamy <sathyanarayanan.kuppuswamy@intel.com>
diff --git a/arch/x86/purgatory/stack.S b/arch/x86/purgatory/stack.S
index 3cefba1fefc8..50a4147f91fb 100644
--- a/arch/x86/purgatory/stack.S
+++ b/arch/x86/purgatory/stack.S
@@ -8,7 +8,7 @@
8 */ 8 */
9 9
10 /* A stack for the loaded kernel. 10 /* A stack for the loaded kernel.
11 * Seperate and in the data section so it can be prepopulated. 11 * Separate and in the data section so it can be prepopulated.
12 */ 12 */
13 .data 13 .data
14 .balign 4096 14 .balign 4096
diff --git a/arch/x86/xen/mmu.c b/arch/x86/xen/mmu.c
index c913ca4f6958..478a2de543a5 100644
--- a/arch/x86/xen/mmu.c
+++ b/arch/x86/xen/mmu.c
@@ -1256,7 +1256,7 @@ static void __init xen_pagetable_cleanhighmap(void)
1256 xen_cleanhighmap(addr, addr + size); 1256 xen_cleanhighmap(addr, addr + size);
1257 xen_start_info->pt_base = (unsigned long)__va(__pa(xen_start_info->pt_base)); 1257 xen_start_info->pt_base = (unsigned long)__va(__pa(xen_start_info->pt_base));
1258#ifdef DEBUG 1258#ifdef DEBUG
1259 /* This is superflous and is not neccessary, but you know what 1259 /* This is superfluous and is not necessary, but you know what
1260 * lets do it. The MODULES_VADDR -> MODULES_END should be clear of 1260 * lets do it. The MODULES_VADDR -> MODULES_END should be clear of
1261 * anything at this stage. */ 1261 * anything at this stage. */
1262 xen_cleanhighmap(MODULES_VADDR, roundup(MODULES_VADDR, PUD_SIZE) - 1); 1262 xen_cleanhighmap(MODULES_VADDR, roundup(MODULES_VADDR, PUD_SIZE) - 1);
@@ -1474,7 +1474,7 @@ static void xen_write_cr3(unsigned long cr3)
1474/* 1474/*
1475 * At the start of the day - when Xen launches a guest, it has already 1475 * At the start of the day - when Xen launches a guest, it has already
1476 * built pagetables for the guest. We diligently look over them 1476 * built pagetables for the guest. We diligently look over them
1477 * in xen_setup_kernel_pagetable and graft as appropiate them in the 1477 * in xen_setup_kernel_pagetable and graft as appropriate them in the
1478 * init_level4_pgt and its friends. Then when we are happy we load 1478 * init_level4_pgt and its friends. Then when we are happy we load
1479 * the new init_level4_pgt - and continue on. 1479 * the new init_level4_pgt - and continue on.
1480 * 1480 *
@@ -2792,7 +2792,7 @@ static int remap_area_mfn_pte_fn(pte_t *ptep, pgtable_t token,
2792 struct remap_data *rmd = data; 2792 struct remap_data *rmd = data;
2793 pte_t pte = pte_mkspecial(mfn_pte(*rmd->mfn, rmd->prot)); 2793 pte_t pte = pte_mkspecial(mfn_pte(*rmd->mfn, rmd->prot));
2794 2794
2795 /* If we have a contigious range, just update the mfn itself, 2795 /* If we have a contiguous range, just update the mfn itself,
2796 else update pointer to be "next mfn". */ 2796 else update pointer to be "next mfn". */
2797 if (rmd->contiguous) 2797 if (rmd->contiguous)
2798 (*rmd->mfn)++; 2798 (*rmd->mfn)++;
@@ -2833,7 +2833,7 @@ static int do_remap_gfn(struct vm_area_struct *vma,
2833 2833
2834 rmd.mfn = gfn; 2834 rmd.mfn = gfn;
2835 rmd.prot = prot; 2835 rmd.prot = prot;
2836 /* We use the err_ptr to indicate if there we are doing a contigious 2836 /* We use the err_ptr to indicate if there we are doing a contiguous
2837 * mapping or a discontigious mapping. */ 2837 * mapping or a discontigious mapping. */
2838 rmd.contiguous = !err_ptr; 2838 rmd.contiguous = !err_ptr;
2839 2839
diff --git a/arch/x86/xen/xen-head.S b/arch/x86/xen/xen-head.S
index b65f59a358a2..dc6457017dec 100644
--- a/arch/x86/xen/xen-head.S
+++ b/arch/x86/xen/xen-head.S
@@ -26,7 +26,7 @@
26 (1 << XENFEAT_auto_translated_physmap) | \ 26 (1 << XENFEAT_auto_translated_physmap) | \
27 (1 << XENFEAT_supervisor_mode_kernel) | \ 27 (1 << XENFEAT_supervisor_mode_kernel) | \
28 (1 << XENFEAT_hvm_callback_vector)) 28 (1 << XENFEAT_hvm_callback_vector))
29/* The XENFEAT_writable_page_tables is not stricly neccessary as we set that 29/* The XENFEAT_writable_page_tables is not stricly necessary as we set that
30 * up regardless whether this CONFIG option is enabled or not, but it 30 * up regardless whether this CONFIG option is enabled or not, but it
31 * clarifies what the right flags need to be. 31 * clarifies what the right flags need to be.
32 */ 32 */