]> www.infradead.org Git - users/jedix/linux-maple.git/commit
intel_idle: re-work bxt_idle_state_table_update() and its helper
authorJan Beulich <JBeulich@suse.com>
Mon, 27 Jun 2016 06:35:12 +0000 (00:35 -0600)
committerChuck Anderson <chuck.anderson@oracle.com>
Thu, 3 Nov 2016 17:26:17 +0000 (10:26 -0700)
commit6c8233f42dcb249a4394634e242acf2c89eaa69f
tree28d10d286b632aa3d20bf1a1dd4e6b39d626241d
parent64ec57c756442e2ee5dee6bd22186c94fd907753
intel_idle: re-work bxt_idle_state_table_update() and its helper

Orabug: 24810432

Since irtl_ns_units[] has itself zero entries, make sure the caller
recognized those cases along with the MSR read returning zero, as zero
is not a valid value for exit_latency and target_residency.

Signed-off-by: Jan Beulich <jbeulich@suse.com>
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
(cherry picked from commit 3451ab3ebf92b12801878d8b5c94845afd4219f0)
Signed-off-by: Brian Maly <brian.maly@oracle.com>
drivers/idle/intel_idle.c