From 4085cd73587287185684f16cae616b115290347d Mon Sep 17 00:00:00 2001 From: Achin Gupta Date: Sun, 10 Mar 2013 21:31:29 +0000 Subject: 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 Signed-off-by: Liviu Dudau --- arch/arm/kernel/psci.c | 3 +++ 1 file changed, 3 insertions(+) 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; -- cgit v1.2.3