ACPI / NUMA: add a stub function for node_to_pxm()
authorWei Liu <wei.liu@kernel.org>
Wed, 3 Feb 2021 15:04:27 +0000 (15:04 +0000)
committerWei Liu <wei.liu@kernel.org>
Thu, 11 Feb 2021 08:47:06 +0000 (08:47 +0000)
There is already a stub function for pxm_to_node but conversion to the
other direction is missing.

It will be used by Microsoft Hypervisor code later.

Signed-off-by: Wei Liu <wei.liu@kernel.org>
Reviewed-by: Michael Kelley <mikelley@microsoft.com>
Acked-by: "Rafael J. Wysocki" <rafael@kernel.org>
Link: https://lore.kernel.org/r/20210203150435.27941-9-wei.liu@kernel.org
include/acpi/acpi_numa.h

index a4c6ef8..40a91ce 100644 (file)
@@ -30,6 +30,10 @@ static inline int pxm_to_node(int pxm)
 {
        return 0;
 }
+static inline int node_to_pxm(int node)
+{
+       return 0;
+}
 #endif                         /* CONFIG_ACPI_NUMA */
 
 #ifdef CONFIG_ACPI_HMAT