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)
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>
Fri, 8 Jul 2016 23:05:30 +0000 (01:05 +0200)
commit3451ab3ebf92b12801878d8b5c94845afd4219f0
tree60b304f2539da187b430ae0539e2657b6487e646
parentb55a0262a4fb4a9754f8a3319df0a6d2fe4c4c58
intel_idle: re-work bxt_idle_state_table_update() and its helper

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>
drivers/idle/intel_idle.c