]> git.ipfire.org Git - thirdparty/kernel/linux.git/commitdiff
ACPI: NUMA: Establish a new drivers/acpi/numa/ directory
authorDan Williams <dan.j.williams@intel.com>
Thu, 7 Nov 2019 01:42:55 +0000 (17:42 -0800)
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>
Thu, 7 Nov 2019 14:43:38 +0000 (15:43 +0100)
Currently hmat.c lives under an "hmat" directory which does not enhance
the description of the file. The initial motivation for giving hmat.c
its own directory was to delineate it as mm functionality in contrast to
ACPI device driver functionality.

As ACPI continues to play an increasing role in conveying
memory location and performance topology information to the OS take the
opportunity to co-locate these NUMA relevant tables in a combined
directory.

numa.c is renamed to srat.c and moved to drivers/acpi/numa/ along with
hmat.c.

Signed-off-by: Dan Williams <dan.j.williams@intel.com>
Reviewed-by: Dave Hansen <dave.hansen@linux.intel.com>
Acked-by: Thomas Gleixner <tglx@linutronix.de>
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
drivers/acpi/Kconfig
drivers/acpi/Makefile
drivers/acpi/hmat/Makefile [deleted file]
drivers/acpi/numa/Kconfig [moved from drivers/acpi/hmat/Kconfig with 77% similarity]
drivers/acpi/numa/Makefile [new file with mode: 0644]
drivers/acpi/numa/hmat.c [moved from drivers/acpi/hmat/hmat.c with 100% similarity]
drivers/acpi/numa/srat.c [moved from drivers/acpi/numa.c with 100% similarity]

index ebe1e9e5fd81cb5a134d85c244fa81cba335d88c..8c7c46065e9df3f3539385874189a50ccda4c75b 100644 (file)
@@ -319,12 +319,6 @@ config ACPI_THERMAL
          To compile this driver as a module, choose M here:
          the module will be called thermal.
 
-config ACPI_NUMA
-       bool "NUMA support"
-       depends on NUMA
-       depends on (X86 || IA64 || ARM64)
-       default y if IA64 || ARM64
-
 config ACPI_CUSTOM_DSDT_FILE
        string "Custom DSDT Table file to include"
        default ""
@@ -473,8 +467,7 @@ config ACPI_REDUCED_HARDWARE_ONLY
          If you are unsure what to do, do not enable this option.
 
 source "drivers/acpi/nfit/Kconfig"
-source "drivers/acpi/hmat/Kconfig"
-
+source "drivers/acpi/numa/Kconfig"
 source "drivers/acpi/apei/Kconfig"
 source "drivers/acpi/dptf/Kconfig"
 
index 5d361e4e3405a06e59de148f6d1ae15c375722f1..f08a661274e8c6cde5d0fc5b6599d485ad817f69 100644 (file)
@@ -55,7 +55,6 @@ acpi-$(CONFIG_X86)            += acpi_cmos_rtc.o
 acpi-$(CONFIG_X86)             += x86/apple.o
 acpi-$(CONFIG_X86)             += x86/utils.o
 acpi-$(CONFIG_DEBUG_FS)                += debugfs.o
-acpi-$(CONFIG_ACPI_NUMA)       += numa.o
 acpi-$(CONFIG_ACPI_PROCFS_POWER) += cm_sbs.o
 acpi-y                         += acpi_lpat.o
 acpi-$(CONFIG_ACPI_LPIT)       += acpi_lpit.o
@@ -80,7 +79,7 @@ obj-$(CONFIG_ACPI_PROCESSOR)  += processor.o
 obj-$(CONFIG_ACPI)             += container.o
 obj-$(CONFIG_ACPI_THERMAL)     += thermal.o
 obj-$(CONFIG_ACPI_NFIT)                += nfit/
-obj-$(CONFIG_ACPI_HMAT)                += hmat/
+obj-$(CONFIG_ACPI_NUMA)                += numa/
 obj-$(CONFIG_ACPI)             += acpi_memhotplug.o
 obj-$(CONFIG_ACPI_HOTPLUG_IOAPIC) += ioapic.o
 obj-$(CONFIG_ACPI_BATTERY)     += battery.o
diff --git a/drivers/acpi/hmat/Makefile b/drivers/acpi/hmat/Makefile
deleted file mode 100644 (file)
index 1c20ef3..0000000
+++ /dev/null
@@ -1,2 +0,0 @@
-# SPDX-License-Identifier: GPL-2.0-only
-obj-$(CONFIG_ACPI_HMAT) := hmat.o
similarity index 77%
rename from drivers/acpi/hmat/Kconfig
rename to drivers/acpi/numa/Kconfig
index 95a29964dbeae7a17892d1aad09fcfe4a4ba81e9..acbd5aa76e4016cc121ee4b1e1c7bab9918527a1 100644 (file)
@@ -1,4 +1,10 @@
 # SPDX-License-Identifier: GPL-2.0
+config ACPI_NUMA
+       bool "NUMA support"
+       depends on NUMA
+       depends on (X86 || IA64 || ARM64)
+       default y if IA64 || ARM64
+
 config ACPI_HMAT
        bool "ACPI Heterogeneous Memory Attribute Table Support"
        depends on ACPI_NUMA
diff --git a/drivers/acpi/numa/Makefile b/drivers/acpi/numa/Makefile
new file mode 100644 (file)
index 0000000..517a6c6
--- /dev/null
@@ -0,0 +1,3 @@
+# SPDX-License-Identifier: GPL-2.0-only
+obj-$(CONFIG_ACPI_NUMA) += srat.o
+obj-$(CONFIG_ACPI_HMAT) += hmat.o
similarity index 100%
rename from drivers/acpi/numa.c
rename to drivers/acpi/numa/srat.c