commit | 74da56ce5c6715630aed3ccc0fcb86a9210c1a56 | [log] [tgz] |
---|---|---|
author | Kristen Carlson Accardi <kristen@linux.intel.com> | Wed Sep 09 11:41:22 2015 -0700 |
committer | Rafael J. Wysocki <rafael.j.wysocki@intel.com> | Wed Sep 09 22:56:18 2015 +0200 |
tree | 142d126a6f6d8612fcfe5c24cdac6d344dd14749 | |
parent | 43717aadd2bc87fb10fbf1cd815c1cbae9bb95b3 [diff] |
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>