]> git.baikalelectronics.ru Git - kernel.git/commit
cpuidle: psci: Fail cpuidle registration if set OSI mode failed
authorUlf Hansson <ulf.hansson@linaro.org>
Tue, 7 Jul 2020 12:58:01 +0000 (14:58 +0200)
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>
Wed, 29 Jul 2020 16:38:30 +0000 (18:38 +0200)
commit93eeb739e347a717d44c020a5c59f9c9cbaeb8df
tree544db595bd41cb3f69a4492255fe72c01b882a1c
parenta642b3d15a187b52560b09687e76d37b68f6d18e
cpuidle: psci: Fail cpuidle registration if set OSI mode failed

Currently we allow the cpuidle driver registration to succeed, even if we
failed to enable the OSI mode when the hierarchical DT layout is used. This
means running in a degraded mode, by using the available idle states per
CPU, while also preventing the domain idle states.

Moving forward, this behaviour looks quite questionable to maintain, as
complexity seems to grow around it, especially when trying to add support
for deferred probe, for example.

Therefore, let's make the cpuidle driver registration to fail in this
situation, thus relying on the default architectural cpuidle backend for
WFI to be used.

Reviewed-by: Lina Iyer <ilina@codeaurora.org>
Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org>
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
drivers/cpuidle/cpuidle-psci-domain.c