From: Daniel Lezcano Date: Thu, 5 Mar 2015 15:44:42 +0000 (+0100) Subject: ARM: cpuidle: Register per cpuidle device X-Git-Tag: omap-for-v4.2/o2_dc~134^2~3^3~2^2^2~1 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=a0d46a3dfdc3f3d639b3fa84b84a58e116e4bf2c;p=pandora-kernel.git ARM: cpuidle: Register per cpuidle device If the cpuidle init cpu operation returns -ENXIO, therefore reporting HW failure or misconfiguration, the CPUidle driver skips the respective cpuidle device initialization because the associated platform back-end HW is not operational. That prevents the system to crash and allows to handle the error gracefully. For example, on Qcom's platform, each core has a SPM. The device associated with this SPM is initialized before the cpuidle framework. If there is an error in the initialization (eg. error in the DT), the system continues to boot but in degraded mode as some SPM may not be correctly initialized. Signed-off-by: Daniel Lezcano Acked-by: Lorenzo Pieralisi --- Reading git-diff-tree failed