Skip to content

Commit fcb418c

Browse files
Peng Haogregkh
authored andcommitted
pvpanic: move pvpanic to misc as common driver
Move pvpanic.c from drivers/platform/x86 to drivers/misc. Following patches will use pvpanic device in arm64. Reviewed-by: Andy Shevchenko <andy.shevchenko@gmail.com> Acked-by: Mark Rutland <mark.rutland@arm.com> Signed-off-by: Peng Hao <peng.hao2@zte.com.cn> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
1 parent a19bf05 commit fcb418c

5 files changed

Lines changed: 9 additions & 9 deletions

File tree

‎drivers/misc/Kconfig‎

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -513,6 +513,14 @@ config MISC_RTSX
513513
tristate
514514
default MISC_RTSX_PCI || MISC_RTSX_USB
515515

516+
config PVPANIC
517+
tristate "pvpanic device support"
518+
depends on ACPI
519+
help
520+
This driver provides support for the pvpanic device. pvpanic is
521+
a paravirtualized device provided by QEMU; it lets a virtual machine
522+
(guest) communicate panic events to the host.
523+
516524
source "drivers/misc/c2port/Kconfig"
517525
source "drivers/misc/eeprom/Kconfig"
518526
source "drivers/misc/cb710/Kconfig"

‎drivers/misc/Makefile‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -58,3 +58,4 @@ obj-$(CONFIG_ASPEED_LPC_SNOOP) += aspeed-lpc-snoop.o
5858
obj-$(CONFIG_PCI_ENDPOINT_TEST) += pci_endpoint_test.o
5959
obj-$(CONFIG_OCXL) += ocxl/
6060
obj-$(CONFIG_MISC_RTSX) += cardreader/
61+
obj-$(CONFIG_PVPANIC) += pvpanic.o

‎drivers/platform/x86/Kconfig‎

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1168,14 +1168,6 @@ config INTEL_SMARTCONNECT
11681168
This driver checks to determine whether the device has Intel Smart
11691169
Connect enabled, and if so disables it.
11701170

1171-
config PVPANIC
1172-
tristate "pvpanic device support"
1173-
depends on ACPI
1174-
---help---
1175-
This driver provides support for the pvpanic device. pvpanic is
1176-
a paravirtualized device provided by QEMU; it lets a virtual machine
1177-
(guest) communicate panic events to the host.
1178-
11791171
config INTEL_PMC_IPC
11801172
tristate "Intel PMC IPC Driver"
11811173
depends on ACPI

‎drivers/platform/x86/Makefile‎

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,6 @@ obj-$(CONFIG_APPLE_GMUX) += apple-gmux.o
7878
obj-$(CONFIG_INTEL_RST) += intel-rst.o
7979
obj-$(CONFIG_INTEL_SMARTCONNECT) += intel-smartconnect.o
8080

81-
obj-$(CONFIG_PVPANIC) += pvpanic.o
8281
obj-$(CONFIG_ALIENWARE_WMI) += alienware-wmi.o
8382
obj-$(CONFIG_INTEL_PMC_IPC) += intel_pmc_ipc.o
8483
obj-$(CONFIG_TOUCHSCREEN_DMI) += touchscreen_dmi.o

0 commit comments

Comments
 (0)