summaryrefslogtreecommitdiffstats
path: root/include/acpi/acpi_numa.h
diff options
context:
space:
mode:
authorWei Liu <wei.liu@kernel.org>2021-02-03 16:04:27 +0100
committerWei Liu <wei.liu@kernel.org>2021-02-11 09:47:06 +0100
commit4f0455cf6f23800c78265c88922c6afd875d08a7 (patch)
tree106de5176aaa569f512b7adba93b9b020014de13 /include/acpi/acpi_numa.h
parentx86/hyperv: handling hypercall page setup for root (diff)
downloadlinux-4f0455cf6f23800c78265c88922c6afd875d08a7.tar.xz
linux-4f0455cf6f23800c78265c88922c6afd875d08a7.zip
ACPI / NUMA: add a stub function for node_to_pxm()
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
Diffstat (limited to 'include/acpi/acpi_numa.h')
-rw-r--r--include/acpi/acpi_numa.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/include/acpi/acpi_numa.h b/include/acpi/acpi_numa.h
index a4c6ef809e27..40a91ce87e04 100644
--- a/include/acpi/acpi_numa.h
+++ b/include/acpi/acpi_numa.h
@@ -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