Skip to content

Commit

Permalink
ACPI / NUMA: add a stub function for node_to_pxm()
Browse files Browse the repository at this point in the history
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
  • Loading branch information
Wei Liu committed Feb 11, 2021
1 parent 80f73c9 commit 4f0455c
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions include/acpi/acpi_numa.h
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 4f0455c

Please sign in to comment.