From 607084ee4c2a7c20832beb8cd1d5cebf02b2cb26 Mon Sep 17 00:00:00 2001 From: Achin Gupta Date: Sun, 9 Feb 2014 18:24:19 +0000 Subject: Add power management support in the SPD This patch implements a set of handlers in the SPD which are called by the PSCI runtime service upon receiving a power management operation. These handlers in turn pass control to the Secure Payload image if required before returning control to PSCI. This ensures that the Secure Payload has complete visibility of all power transitions in the system and can prepare accordingly. Change-Id: I2d1dba5629b7cf2d53999d39fe807dfcf3f62fe2 --- bl32/tsp/tsp_main.c | 15 +++------------ 1 file changed, 3 insertions(+), 12 deletions(-) (limited to 'bl32/tsp/tsp_main.c') diff --git a/bl32/tsp/tsp_main.c b/bl32/tsp/tsp_main.c index 258bee49e..f6640edd7 100644 --- a/bl32/tsp/tsp_main.c +++ b/bl32/tsp/tsp_main.c @@ -199,10 +199,7 @@ tsp_args *tsp_cpu_off_main(uint64_t arg0, spin_unlock(&console_lock); - /* - * Indicate to the SPD that we have completed - * this initialisation request. - */ + /* Indicate to the SPD that we have completed this request */ return set_smc_args(TSP_OFF_DONE, 0, 0, 0, 0, 0, 0, 0); } @@ -237,10 +234,7 @@ tsp_args *tsp_cpu_suspend_main(uint64_t power_state, tsp_stats[linear_id].cpu_suspend_count); spin_unlock(&console_lock); - /* - * Indicate to the SPD that we have completed - * this initialisation request. - */ + /* Indicate to the SPD that we have completed this request */ return set_smc_args(TSP_SUSPEND_DONE, 0, 0, 0, 0, 0, 0, 0); } @@ -275,10 +269,7 @@ tsp_args *tsp_cpu_resume_main(uint64_t suspend_level, tsp_stats[linear_id].cpu_suspend_count); spin_unlock(&console_lock); - /* - * Indicate to the SPD that we have completed - * this initialisation request. - */ + /* Indicate to the SPD that we have completed this request */ return set_smc_args(TSP_RESUME_DONE, 0, 0, 0, 0, 0, 0, 0); } -- cgit v1.2.3