Skip to content

Commit 8cf126d

Browse files
committed
Merge branch 'x86-urgent-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip
Pull x86 fixes from Peter Anvin: "There is a small EFI fix and a big power regression fix in this batch. My queue also had a fix for downing a CPU when there are insufficient number of IRQ vectors available, but I'm holding that one for now due to recent bug reports" * 'x86-urgent-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip: x86/efi: Don't select EFI from certain special ACPI drivers x86 idle: Repair large-server 50-watt idle-power regression
2 parents bddffa2 + fce7d3b commit 8cf126d

File tree

7 files changed

+10
-7
lines changed

7 files changed

+10
-7
lines changed

arch/x86/kernel/cpu/intel.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -387,7 +387,8 @@ static void init_intel(struct cpuinfo_x86 *c)
387387
set_cpu_cap(c, X86_FEATURE_PEBS);
388388
}
389389

390-
if (c->x86 == 6 && c->x86_model == 29 && cpu_has_clflush)
390+
if (c->x86 == 6 && cpu_has_clflush &&
391+
(c->x86_model == 29 || c->x86_model == 46 || c->x86_model == 47))
391392
set_cpu_cap(c, X86_FEATURE_CLFLUSH_MONITOR);
392393

393394
#ifdef CONFIG_X86_64

drivers/acpi/Kconfig

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -348,7 +348,6 @@ source "drivers/acpi/apei/Kconfig"
348348
config ACPI_EXTLOG
349349
tristate "Extended Error Log support"
350350
depends on X86_MCE && X86_LOCAL_APIC
351-
select EFI
352351
select UEFI_CPER
353352
default n
354353
help

drivers/acpi/apei/Kconfig

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@ config ACPI_APEI
22
bool "ACPI Platform Error Interface (APEI)"
33
select MISC_FILESYSTEMS
44
select PSTORE
5-
select EFI
65
select UEFI_CPER
76
depends on X86
87
help

drivers/firmware/Makefile

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,3 +14,4 @@ obj-$(CONFIG_FIRMWARE_MEMMAP) += memmap.o
1414

1515
obj-$(CONFIG_GOOGLE_FIRMWARE) += google/
1616
obj-$(CONFIG_EFI) += efi/
17+
obj-$(CONFIG_UEFI_CPER) += efi/

drivers/firmware/efi/Kconfig

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ config EFI_VARS_PSTORE_DEFAULT_DISABLE
3636
backend for pstore by default. This setting can be overridden
3737
using the efivars module's pstore_disable parameter.
3838

39-
config UEFI_CPER
40-
def_bool n
41-
4239
endmenu
40+
41+
config UEFI_CPER
42+
bool

drivers/firmware/efi/Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
#
22
# Makefile for linux kernel
33
#
4-
obj-y += efi.o vars.o
4+
obj-$(CONFIG_EFI) += efi.o vars.o
55
obj-$(CONFIG_EFI_VARS) += efivars.o
66
obj-$(CONFIG_EFI_VARS_PSTORE) += efi-pstore.o
77
obj-$(CONFIG_UEFI_CPER) += cper.o

drivers/idle/intel_idle.c

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -377,6 +377,9 @@ static int intel_idle(struct cpuidle_device *dev,
377377

378378
if (!current_set_polling_and_test()) {
379379

380+
if (this_cpu_has(X86_FEATURE_CLFLUSH_MONITOR))
381+
clflush((void *)&current_thread_info()->flags);
382+
380383
__monitor((void *)&current_thread_info()->flags, 0, 0);
381384
smp_mb();
382385
if (!need_resched())

0 commit comments

Comments
 (0)