diff options
author | Sandrine Bailleux <sandrine.bailleux@arm.com> | 2014-11-07 16:48:40 +0000 |
---|---|---|
committer | Sandrine Bailleux <sandrine.bailleux@arm.com> | 2014-11-24 14:09:45 +0000 |
commit | d5472878d74e1a563576c4d5781dac906924af58 (patch) | |
tree | e7146dee2940647e21d9ac44c0cd4e752f23b6a0 /lib/power_management/suspend/tftf_suspend.c | |
parent | ea7a6067c984dc0ca5c61e11bc52928cca0a575a (diff) |
Fix return type of PSCI CPU hotplug & idle wrappers
As per the PSCI specification, CPU_ON, CPU_OFF and CPU_SUSPEND calls
return signed 32-bit integers. This patch fixes the return type of
PSCI CPU hotplug & idle wrappers when appropriate.
Change-Id: Iaa8b61695f1dd289893e7f409edb2964d3ca0988
Diffstat (limited to 'lib/power_management/suspend/tftf_suspend.c')
-rw-r--r-- | lib/power_management/suspend/tftf_suspend.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/lib/power_management/suspend/tftf_suspend.c b/lib/power_management/suspend/tftf_suspend.c index 17f57ee..c622752 100644 --- a/lib/power_management/suspend/tftf_suspend.c +++ b/lib/power_management/suspend/tftf_suspend.c @@ -21,8 +21,8 @@ #include <tftf_lib.h> #include "suspend_private.h" -unsigned int tftf_enter_suspend(uint32_t power_state, - tftf_cpu_suspend_ctx_t *ctx) +int32_t tftf_enter_suspend(uint32_t power_state, + tftf_cpu_suspend_ctx_t *ctx) { smc64_args args = { SMC_PSCI_CPU_SUSPEND_AARCH64, @@ -53,9 +53,9 @@ unsigned int tftf_enter_suspend(uint32_t power_state, return rc.ret0; } -unsigned int tftf_cpu_suspend(uint32_t power_state) +int32_t tftf_cpu_suspend(uint32_t power_state) { - unsigned int rc; + int32_t rc; uint64_t flags; flags = read_daif(); |