Skip to content

Commit bdf9701

Browse files
committed
nfit: move to nfit/ sub-directory
With the arrival of x86-machine-check support the nfit driver will add a (conditionally-compiled) source file. Prepare for this by moving all nfit source to drivers/acpi/nfit/. This is pure code movement, no functional changes. Signed-off-by: Dan Williams <dan.j.williams@intel.com>
1 parent 37b137f commit bdf9701

File tree

8 files changed

+33
-30
lines changed

8 files changed

+33
-30
lines changed

drivers/acpi/Kconfig

Lines changed: 1 addition & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -447,32 +447,7 @@ config ACPI_REDUCED_HARDWARE_ONLY
447447

448448
If you are unsure what to do, do not enable this option.
449449

450-
config ACPI_NFIT
451-
tristate "ACPI NVDIMM Firmware Interface Table (NFIT)"
452-
depends on PHYS_ADDR_T_64BIT
453-
depends on BLK_DEV
454-
depends on ARCH_HAS_MMIO_FLUSH
455-
select LIBNVDIMM
456-
help
457-
Infrastructure to probe ACPI 6 compliant platforms for
458-
NVDIMMs (NFIT) and register a libnvdimm device tree. In
459-
addition to storage devices this also enables libnvdimm to pass
460-
ACPI._DSM messages for platform/dimm configuration.
461-
462-
To compile this driver as a module, choose M here:
463-
the module will be called nfit.
464-
465-
config ACPI_NFIT_DEBUG
466-
bool "NFIT DSM debug"
467-
depends on ACPI_NFIT
468-
depends on DYNAMIC_DEBUG
469-
default n
470-
help
471-
Enabling this option causes the nfit driver to dump the
472-
input and output buffers of _DSM operations on the ACPI0012
473-
device and its children. This can be very verbose, so leave
474-
it disabled unless you are debugging a hardware / firmware
475-
issue.
450+
source "drivers/acpi/nfit/Kconfig"
476451

477452
source "drivers/acpi/apei/Kconfig"
478453

drivers/acpi/Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ obj-$(CONFIG_ACPI_PCI_SLOT) += pci_slot.o
7070
obj-$(CONFIG_ACPI_PROCESSOR) += processor.o
7171
obj-$(CONFIG_ACPI) += container.o
7272
obj-$(CONFIG_ACPI_THERMAL) += thermal.o
73-
obj-$(CONFIG_ACPI_NFIT) += nfit.o
73+
obj-$(CONFIG_ACPI_NFIT) += nfit/
7474
obj-$(CONFIG_ACPI) += acpi_memhotplug.o
7575
obj-$(CONFIG_ACPI_HOTPLUG_IOAPIC) += ioapic.o
7676
obj-$(CONFIG_ACPI_BATTERY) += battery.o

drivers/acpi/nfit/Kconfig

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
config ACPI_NFIT
2+
tristate "ACPI NVDIMM Firmware Interface Table (NFIT)"
3+
depends on PHYS_ADDR_T_64BIT
4+
depends on BLK_DEV
5+
depends on ARCH_HAS_MMIO_FLUSH
6+
select LIBNVDIMM
7+
help
8+
Infrastructure to probe ACPI 6 compliant platforms for
9+
NVDIMMs (NFIT) and register a libnvdimm device tree. In
10+
addition to storage devices this also enables libnvdimm to pass
11+
ACPI._DSM messages for platform/dimm configuration.
12+
13+
To compile this driver as a module, choose M here:
14+
the module will be called nfit.
15+
16+
config ACPI_NFIT_DEBUG
17+
bool "NFIT DSM debug"
18+
depends on ACPI_NFIT
19+
depends on DYNAMIC_DEBUG
20+
default n
21+
help
22+
Enabling this option causes the nfit driver to dump the
23+
input and output buffers of _DSM operations on the ACPI0012
24+
device and its children. This can be very verbose, so leave
25+
it disabled unless you are debugging a hardware / firmware
26+
issue.

drivers/acpi/nfit/Makefile

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
obj-$(CONFIG_ACPI_NFIT) := nfit.o
2+
nfit-y := core.o
File renamed without changes.
File renamed without changes.

tools/testing/nvdimm/Kbuild

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ ldflags-y += --wrap=remove_resource
1616

1717
DRIVERS := ../../../drivers
1818
NVDIMM_SRC := $(DRIVERS)/nvdimm
19-
ACPI_SRC := $(DRIVERS)/acpi
19+
ACPI_SRC := $(DRIVERS)/acpi/nfit
2020
DAX_SRC := $(DRIVERS)/dax
2121
ccflags-y := -I$(src)/$(NVDIMM_SRC)/
2222

@@ -29,7 +29,7 @@ obj-$(CONFIG_ACPI_NFIT) += nfit.o
2929
obj-$(CONFIG_DEV_DAX) += dax.o
3030
obj-$(CONFIG_DEV_DAX_PMEM) += dax_pmem.o
3131

32-
nfit-y := $(ACPI_SRC)/nfit.o
32+
nfit-y := $(ACPI_SRC)/core.o
3333
nfit-y += config_check.o
3434

3535
nd_pmem-y := $(NVDIMM_SRC)/pmem.o

tools/testing/nvdimm/test/Kbuild

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
ccflags-y := -I$(src)/../../../../drivers/nvdimm/
2-
ccflags-y += -I$(src)/../../../../drivers/acpi/
2+
ccflags-y += -I$(src)/../../../../drivers/acpi/nfit/
33

44
obj-m += nfit_test.o
55
obj-m += nfit_test_iomap.o

0 commit comments

Comments
 (0)