From 70f1f1fff16638321acf08a7189ddb1ba4163935 Mon Sep 17 00:00:00 2001 From: Kai Vehmanen Date: Tue, 1 Feb 2022 14:44:10 +0200 Subject: [PATCH] zephyr: implement arch_cpu_disable_core() Add implementation of secondary core disable with a call to SOF runtime-PM framework. Signed-off-by: Kai Vehmanen --- zephyr/wrapper.c | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/zephyr/wrapper.c b/zephyr/wrapper.c index 036284545dd8..a9650f5a4fc7 100644 --- a/zephyr/wrapper.c +++ b/zephyr/wrapper.c @@ -746,7 +746,12 @@ int arch_cpu_secondary_cores_prepare_d0ix(void) void arch_cpu_disable_core(int id) { - /* TODO: call Zephyr API */ + /* + * As long as DSP core reference count is handled + * with SOF runtime-PM driver, we need to disable + * a core via RPM. + */ + pm_runtime_put(PM_RUNTIME_DSP, PWRD_BY_TPLG | id); } int arch_cpu_is_core_enabled(int id)