Thread (1 message) 1 message, 1 author, 2021-02-04

Re: [PATCH v6 08/16] ACPI / NUMA: add a stub function for node_to_pxm()

From: "Rafael J. Wysocki" <rafael@kernel.org>
Date: 2021-02-04 18:48:55
Also in: linux-acpi, linux-hyperv, lkml

On Thu, Feb 4, 2021 at 7:41 PM Wei Liu [off-list ref] wrote:
On Wed, Feb 03, 2021 at 03:04:27PM +0000, Wei Liu wrote:
quoted
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>
Hi ACPI maintainers, if you're happy with this patch I can take it via
the hyperv-next tree, given the issue is discovered when pxm_to_node is
called in our code.
Yes, you can.

Thanks!
quoted
---
v6: new
---
 include/acpi/acpi_numa.h | 4 ++++
 1 file changed, 4 insertions(+)
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
--
2.20.1
_______________________________________________
Virtualization mailing list
Virtualization@lists.linux-foundation.org
https://lists.linuxfoundation.org/mailman/listinfo/virtualization
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help