diff options
author | Wei Liu <wei.liu@kernel.org> | 2021-02-03 15:04:27 +0000 |
---|---|---|
committer | Wei Liu <wei.liu@kernel.org> | 2021-02-11 08:47:06 +0000 |
commit | 4f0455cf6f23800c78265c88922c6afd875d08a7 (patch) | |
tree | 106de5176aaa569f512b7adba93b9b020014de13 /include/acpi | |
parent | 80f73c9f7468b15484e3ee4a29870fc9fa0419cc (diff) |
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')
-rw-r--r-- | include/acpi/acpi_numa.h | 4 |
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 |