Re: [PATCH v4 1/2] ARM: cpuidle: fix !cpuidle_ops[cpu].init case during init

2016-07-07 Thread Daniel Lezcano
On Wed, Jul 06, 2016 at 02:15:54PM +0800, Jisheng Zhang wrote: > Let's assume cpuidle_ops exists but it doesn't implement the according > init callback, current arm_cpuidle_init() will return success to its > caller, but in fact it should return -EOPNOTSUPP. > > Signed-off-by: Jisheng Zhang > ---

[PATCH v4 1/2] ARM: cpuidle: fix !cpuidle_ops[cpu].init case during init

2016-07-05 Thread Jisheng Zhang
Let's assume cpuidle_ops exists but it doesn't implement the according init callback, current arm_cpuidle_init() will return success to its caller, but in fact it should return -EOPNOTSUPP. Signed-off-by: Jisheng Zhang --- arch/arm/kernel/cpuidle.c | 14 +++--- 1 file changed, 11 inserti