cpufreq: intel_pstate: Modify check in intel_pstate_update_status()
authorRafael J. Wysocki <rafael.j.wysocki@intel.com>
Mon, 27 Mar 2017 22:14:08 +0000 (00:14 +0200)
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>
Tue, 28 Mar 2017 21:12:15 +0000 (23:12 +0200)
commit0042b2c0692ade097ef3a6bbffa491da5dc89273
tree4878a8d2a611d5ea4834040bf98c639781a043ac
parentee8df89a68f27a7484f1fc71d3d69149dd4dd267
cpufreq: intel_pstate: Modify check in intel_pstate_update_status()

One of the checks in intel_pstate_update_status() implicitly relies
on the information that there are only two struct cpufreq_driver
objects available, but it is better to do it directly against the
value it really is about (to make the code easier to follow if
nothing else).

Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
drivers/cpufreq/intel_pstate.c