diff options
| author | Linus Torvalds <torvalds@linux-foundation.org> | 2016-05-16 18:15:17 -0400 |
|---|---|---|
| committer | Linus Torvalds <torvalds@linux-foundation.org> | 2016-05-16 18:15:17 -0400 |
| commit | 168f1a7163b37294a0ef33829e1ed54d41e33c42 (patch) | |
| tree | 16fa34f24156c28f0a3060d984e98bf4df878f91 /arch/x86/kernel/cpu/mcheck | |
| parent | 825a3b2605c3aa193e0075d0f9c72e33c17ab16a (diff) | |
| parent | 4afd0565552c87f23834db9121dd9cf6955d0b43 (diff) | |
Merge branch 'x86-asm-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip
Pull x86 asm updates from Ingo Molnar:
"The main changes in this cycle were:
- MSR access API fixes and enhancements (Andy Lutomirski)
- early exception handling improvements (Andy Lutomirski)
- user-space FS/GS prctl usage fixes and improvements (Andy
Lutomirski)
- Remove the cpu_has_*() APIs and replace them with equivalents
(Borislav Petkov)
- task switch micro-optimization (Brian Gerst)
- 32-bit entry code simplification (Denys Vlasenko)
- enhance PAT handling in enumated CPUs (Toshi Kani)
... and lots of other cleanups/fixlets"
* 'x86-asm-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip: (70 commits)
x86/arch_prctl/64: Restore accidentally removed put_cpu() in ARCH_SET_GS
x86/entry/32: Remove asmlinkage_protect()
x86/entry/32: Remove GET_THREAD_INFO() from entry code
x86/entry, sched/x86: Don't save/restore EFLAGS on task switch
x86/asm/entry/32: Simplify pushes of zeroed pt_regs->REGs
selftests/x86/ldt_gdt: Test set_thread_area() deletion of an active segment
x86/tls: Synchronize segment registers in set_thread_area()
x86/asm/64: Rename thread_struct's fs and gs to fsbase and gsbase
x86/arch_prctl/64: Remove FSBASE/GSBASE < 4G optimization
x86/segments/64: When load_gs_index fails, clear the base
x86/segments/64: When loadsegment(fs, ...) fails, clear the base
x86/asm: Make asm/alternative.h safe from assembly
x86/asm: Stop depending on ptrace.h in alternative.h
x86/entry: Rename is_{ia32,x32}_task() to in_{ia32,x32}_syscall()
x86/asm: Make sure verify_cpu() has a good stack
x86/extable: Add a comment about early exception handlers
x86/msr: Set the return value to zero when native_rdmsr_safe() fails
x86/paravirt: Make "unsafe" MSR accesses unsafe even if PARAVIRT=y
x86/paravirt: Add paravirt_{read,write}_msr()
x86/msr: Carry on after a non-"safe" MSR access fails
...
Diffstat (limited to 'arch/x86/kernel/cpu/mcheck')
| -rw-r--r-- | arch/x86/kernel/cpu/mcheck/mce_intel.c | 2 | ||||
| -rw-r--r-- | arch/x86/kernel/cpu/mcheck/therm_throt.c | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/arch/x86/kernel/cpu/mcheck/mce_intel.c b/arch/x86/kernel/cpu/mcheck/mce_intel.c index 1e8bb6c94f14..1defb8ea882c 100644 --- a/arch/x86/kernel/cpu/mcheck/mce_intel.c +++ b/arch/x86/kernel/cpu/mcheck/mce_intel.c | |||
| @@ -84,7 +84,7 @@ static int cmci_supported(int *banks) | |||
| 84 | */ | 84 | */ |
| 85 | if (boot_cpu_data.x86_vendor != X86_VENDOR_INTEL) | 85 | if (boot_cpu_data.x86_vendor != X86_VENDOR_INTEL) |
| 86 | return 0; | 86 | return 0; |
| 87 | if (!cpu_has_apic || lapic_get_maxlvt() < 6) | 87 | if (!boot_cpu_has(X86_FEATURE_APIC) || lapic_get_maxlvt() < 6) |
| 88 | return 0; | 88 | return 0; |
| 89 | rdmsrl(MSR_IA32_MCG_CAP, cap); | 89 | rdmsrl(MSR_IA32_MCG_CAP, cap); |
| 90 | *banks = min_t(unsigned, MAX_NR_BANKS, cap & 0xff); | 90 | *banks = min_t(unsigned, MAX_NR_BANKS, cap & 0xff); |
diff --git a/arch/x86/kernel/cpu/mcheck/therm_throt.c b/arch/x86/kernel/cpu/mcheck/therm_throt.c index ac780cad3b86..6b9dc4d18ccc 100644 --- a/arch/x86/kernel/cpu/mcheck/therm_throt.c +++ b/arch/x86/kernel/cpu/mcheck/therm_throt.c | |||
| @@ -450,7 +450,7 @@ asmlinkage __visible void smp_trace_thermal_interrupt(struct pt_regs *regs) | |||
| 450 | /* Thermal monitoring depends on APIC, ACPI and clock modulation */ | 450 | /* Thermal monitoring depends on APIC, ACPI and clock modulation */ |
| 451 | static int intel_thermal_supported(struct cpuinfo_x86 *c) | 451 | static int intel_thermal_supported(struct cpuinfo_x86 *c) |
| 452 | { | 452 | { |
| 453 | if (!cpu_has_apic) | 453 | if (!boot_cpu_has(X86_FEATURE_APIC)) |
| 454 | return 0; | 454 | return 0; |
| 455 | if (!cpu_has(c, X86_FEATURE_ACPI) || !cpu_has(c, X86_FEATURE_ACC)) | 455 | if (!cpu_has(c, X86_FEATURE_ACPI) || !cpu_has(c, X86_FEATURE_ACC)) |
| 456 | return 0; | 456 | return 0; |
