]> git.karo-electronics.de Git - karo-tx-linux.git/commit
cpufreq: intel_pstate: Introduce pid_in_use()
authorRafael J. Wysocki <rafael.j.wysocki@intel.com>
Mon, 27 Mar 2017 22:20:13 +0000 (00:20 +0200)
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>
Tue, 28 Mar 2017 21:12:16 +0000 (23:12 +0200)
commit8ca6ce37014e5a9b127fc076448eb95e2b366d05
tree5e4c5992213ef14d8c1178ac17a095be1b08bbdf
parent2f49afc2a6f6ec4bacb2e50d5482ecc111b41ab5
cpufreq: intel_pstate: Introduce pid_in_use()

Add a new function pid_in_use() to return the information on whether
or not the PID-based P-state selection algorithm is in use.

That allows a couple of complicated conditions in the code to be
reduced to simple checks against the new function's return value.

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