[RFC PATCH 29/38] arm_mpam: resctrl: Call resctrl_init() on platforms that can support resctrl

James Morse
2025-12-05T22:01:27Z

Now that MPAM links against resctrl, call resctrl_init() to register
the filesystem and setup resctrl's strutures.

Signed-off-by: James Morse <james.morse@arm.com>
---
drivers/resctrl/mpam_resctrl.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/resctrl/mpam_resctrl.c b/drivers/resctrl/mpam_resctrl.c
index 00455de3efe9..eb3caee45470 100644
--- a/drivers/resctrl/mpam_resctrl.c
+++ b/drivers/resctrl/mpam_resctrl.c
@@ -1768,7 +1768,7 @@ int mpam_resctrl_setup(void)
pr_warn("Number of PMG is not a power of 2! resctrl may misbehave");
}

- /* TODO: call resctrl_init() */
+ err = resctrl_init();
}

return err;
--
2.39.5