Forum | Documentation | Website | Blog

Skip to content
Snippets Groups Projects
Commit cbda56d5 authored by Rafael J. Wysocki's avatar Rafael J. Wysocki
Browse files

cpuidle: Introduce cpuidle_driver_state_disabled() for driver quirks

Commit 99e98d3f ("cpuidle: Consolidate disabled state checks")
overlooked the fact that the imx6q and tegra20 cpuidle drivers use
the "disabled" field in struct cpuidle_state for quirks which trigger
after the initialization of cpuidle, so reading the initial value of
that field is not sufficient for those drivers.

In order to allow them to implement the quirks without using the
"disabled" field in struct cpuidle_state, introduce a new helper
function and modify them to use it.

Fixes: 99e98d3f

 ("cpuidle: Consolidate disabled state checks")
Reported-by: default avatarLen Brown <lenb@kernel.org>
Signed-off-by: default avatarRafael J. Wysocki <rafael.j.wysocki@intel.com>
parent 85f6a17f
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment