]> git.kernelconcepts.de Git - karo-tx-linux.git/commit
intel_idle: allow idle states to be freeze-mode specific
authorLen Brown <len.brown@intel.com>
Wed, 27 May 2015 21:11:37 +0000 (17:11 -0400)
committerLen Brown <len.brown@intel.com>
Sun, 26 Jul 2015 16:43:45 +0000 (12:43 -0400)
commit7dd0e0af64afe4aa08ccdd167f64bd007f09b515
treef09c6ef7092df934e512aaf1ef2fd628c9f91fff
parent26ae19a3883c9d595e9100fd10b856a7cf1a949a
intel_idle: allow idle states to be freeze-mode specific

intel_idle uses a NULL "enter" field in a cpuidle state
to recognize the invalid entry terminating a variable-length array.

Linux-4.0 added support for the system-wide "freeze" state
in cpuidle drivers via the new "enter_freeze" field.

The natural way to expose a deep idle state for freeze,
but not for run-time idle is to supply "enter_freeze" without "enter";
so we update the driver to accept such states.

Signed-off-by: Len Brown <len.brown@intel.com>
drivers/idle/intel_idle.c