]> git.baikalelectronics.ru Git - kernel.git/commit
intel_pstate: fix PCT_TO_HWP macro
authorKristen Carlson Accardi <kristen@linux.intel.com>
Wed, 9 Sep 2015 18:41:22 +0000 (11:41 -0700)
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>
Wed, 9 Sep 2015 20:56:18 +0000 (22:56 +0200)
commit9216a443f22d27a46531ab269c9960249fc7644f
tree142d126a6f6d8612fcfe5c24cdac6d344dd14749
parentf9d5a65e8f27f29d5e35bfeaa33f961dd7bd6f0a
intel_pstate: fix PCT_TO_HWP macro

PCT_TO_HWP does not take the actual range of pstates exported
by HWP_CAPABILITIES in account, and is broken on most platforms.
Remove the macro and set the min and max pstate for hwp by
determining the range and adjusting by the min and max percent
limits values.

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