ACPI: NUMA: HMAT: Register HMAT at device_initcall level
authorDan Williams <dan.j.williams@intel.com>
Thu, 7 Nov 2019 01:43:49 +0000 (17:43 -0800)
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>
Thu, 7 Nov 2019 14:45:09 +0000 (15:45 +0100)
In preparation for registering device-dax instances for accessing EFI
specific-purpose memory, arrange for the HMAT registration to occur
later in the init process. Critically HMAT initialization needs to occur
after e820__reserve_resources_late() which is the point at which the
iomem resource tree is populated with "Application Reserved"
(IORES_DESC_APPLICATION_RESERVED). e820__reserve_resources_late()
happens at subsys_initcall time.

Reviewed-by: Dave Hansen <dave.hansen@linux.intel.com>
Signed-off-by: Dan Williams <dan.j.williams@intel.com>
Acked-by: Thomas Gleixner <tglx@linutronix.de>
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
drivers/acpi/numa/hmat.c

index 8b0de8a..00e0a27 100644 (file)
@@ -748,4 +748,4 @@ out_put:
        acpi_put_table(tbl);
        return 0;
 }
-subsys_initcall(hmat_init);
+device_initcall(hmat_init);