]> www.infradead.org Git - users/jedix/linux-maple.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)
committerChuck Anderson <chuck.anderson@oracle.com>
Thu, 3 Nov 2016 17:24:45 +0000 (10:24 -0700)
commitc895488d71f0b780a1bb9d49c12d952dc2b36c29
tree899fd038d75017a00bba063b70a8e7ec7d047be5
parentab28a641ff295a9875349b57913bb0e76fab4557
intel_idle: allow idle states to be freeze-mode specific

Orabug: 24810432

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>
(cherry picked from commit 7dd0e0af64afe4aa08ccdd167f64bd007f09b515)
Signed-off-by: Brian Maly <brian.maly@oracle.com>
drivers/idle/intel_idle.c