diff options
author | Achin Gupta <achin.gupta@arm.com> | 2013-03-10 21:31:29 +0000 |
---|---|---|
committer | Jon Medhurst <tixy@linaro.org> | 2013-04-29 09:43:17 +0100 |
commit | 4085cd73587287185684f16cae616b115290347d (patch) | |
tree | 3855ca088cd9bf362c36f97fa2880ade3db55272 | |
parent | 19e8c92bbe2e18c92cfa0d10b8c02db8e3ec18d5 (diff) |
ARM: psci: convert psci '-EALREADYON' error code to linux '-EAGAIN'
This patch adds a possible error code of the cpu_on psci api. It
indicates that the cpu specified in the cpu_on call is up and running
(e.g. the firmware still has not seen the preceding cpu_off call).
Signed-off-by: Achin Gupta <achin.gupta@arm.com>
Signed-off-by: Liviu Dudau <Liviu.Dudau@arm.com>
-rw-r--r-- | arch/arm/kernel/psci.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/arch/arm/kernel/psci.c b/arch/arm/kernel/psci.c index 36531643cc2..5211f18cd2b 100644 --- a/arch/arm/kernel/psci.c +++ b/arch/arm/kernel/psci.c @@ -42,6 +42,7 @@ static u32 psci_function_id[PSCI_FN_MAX]; #define PSCI_RET_EOPNOTSUPP -1 #define PSCI_RET_EINVAL -2 #define PSCI_RET_EPERM -3 +#define PSCI_RET_EALREADYON -4 static int psci_to_linux_errno(int errno) { @@ -54,6 +55,8 @@ static int psci_to_linux_errno(int errno) return -EINVAL; case PSCI_RET_EPERM: return -EPERM; + case PSCI_RET_EALREADYON: + return -EAGAIN; }; return -EINVAL; |