]> git.baikalelectronics.ru Git - kernel.git/commit
ARM: cpuidle: Support asymmetric idle definition
authorDaniel Lezcano <daniel.lezcano@linaro.org>
Mon, 12 Jun 2017 15:55:10 +0000 (17:55 +0200)
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>
Fri, 23 Jun 2017 23:51:00 +0000 (01:51 +0200)
commit39a634230ac259c9254c90373f6a5adadd0af382
tree3e8178c7843daef1e00fd3afaae1455a09b5f598
parente7de6d66fee4e75d42fc7d1cb785ba58edc08443
ARM: cpuidle: Support asymmetric idle definition

Some hardware have clusters with different idle states. The current code does
not support this and fails as it expects all the idle states to be identical.

Because of this, the Mediatek mtk8173 had to create the same idle state for a
big.Little system and now the Hisilicon 960 is facing the same situation.

Solve this by simply assuming the multiple driver will be needed for all the
platforms using the ARM generic cpuidle driver which makes sense because of the
different topologies we can support with a single kernel for ARM32 or ARM64.

Every CPU has its own driver, so every single CPU can specify in the DT the
idle states.

This simple approach allows to support the future dynamIQ system, current SMP
and HMP.

Tested on:
 - 96boards: Hikey 620
 - 96boards: Hikey 960
 - 96boards: dragonboard410c
 - Mediatek 8173

Tested-by: Leo Yan <leo.yan@linaro.org>
Signed-off-by: Daniel Lezcano <daniel.lezcano@linaro.org>
Acked-by: Sudeep Holla <sudeep.holla@arm.com>
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
drivers/cpuidle/Kconfig.arm
drivers/cpuidle/cpuidle-arm.c