aboutsummaryrefslogtreecommitdiff
path: root/services
diff options
context:
space:
mode:
authorStephen Wolfe <swolfe@nvidia.com>2018-03-29 12:32:08 -0700
committerVarun Wadekar <vwadekar@nvidia.com>2019-01-31 08:49:38 -0800
commit1ffaaec9ec409c4ab57baeda7772f2f3e2ccf4be (patch)
tree22aca309402290a41eaeec5773699d4042732a19 /services
parentc33473d527ee5354abc3d169f68395179074f5df (diff)
downloadtrusted-firmware-a-1ffaaec9ec409c4ab57baeda7772f2f3e2ccf4be.tar.gz
spd: trusty: pass max affinity level to Trusty
During System Suspend, the entire system loses its state. To allow Trusty to save/restore its context and allow its TAs to participate in the suspend process, it needs to look at the max affinity level being suspended. This patch passes the max affinity level to Trusty to enable to do so. Change-Id: If7838dae10c3f5a694baedb15ec56fbad41f2b36 Signed-off-by: Varun Wadekar <vwadekar@nvidia.com>
Diffstat (limited to 'services')
-rw-r--r--services/spd/trusty/trusty.c16
1 files changed, 8 insertions, 8 deletions
diff --git a/services/spd/trusty/trusty.c b/services/spd/trusty/trusty.c
index 83c14b4996..ce942dd2c7 100644
--- a/services/spd/trusty/trusty.c
+++ b/services/spd/trusty/trusty.c
@@ -352,32 +352,32 @@ static void trusty_cpu_resume(uint32_t on)
}
}
-static int32_t trusty_cpu_off_handler(u_register_t unused)
+static int32_t trusty_cpu_off_handler(u_register_t max_off_lvl)
{
- trusty_cpu_suspend(1);
+ trusty_cpu_suspend(max_off_lvl);
return 0;
}
-static void trusty_cpu_on_finish_handler(u_register_t unused)
+static void trusty_cpu_on_finish_handler(u_register_t max_off_lvl)
{
struct trusty_cpu_ctx *ctx = get_trusty_ctx();
if (ctx->saved_sp == NULL) {
(void)trusty_init();
} else {
- trusty_cpu_resume(1);
+ trusty_cpu_resume(max_off_lvl);
}
}
-static void trusty_cpu_suspend_handler(u_register_t unused)
+static void trusty_cpu_suspend_handler(u_register_t max_off_lvl)
{
- trusty_cpu_suspend(0);
+ trusty_cpu_suspend(max_off_lvl);
}
-static void trusty_cpu_suspend_finish_handler(u_register_t unused)
+static void trusty_cpu_suspend_finish_handler(u_register_t max_off_lvl)
{
- trusty_cpu_resume(0);
+ trusty_cpu_resume(max_off_lvl);
}
static const spd_pm_ops_t trusty_pm = {