aboutsummaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python
diff options
context:
space:
mode:
authorPali Rohár <[email protected]>2015-01-12 14:32:03 +0100
committerGreg Kroah-Hartman <[email protected]>2015-01-25 09:17:59 -0800
commit8f21d8e939b8be096d6f8b6f4386a1f616e307a9 (patch)
tree90a4558a4f8715303482ee1037d9f700f6388dfe /tools/perf/scripts/python
parent7f69fb033b38022554fc43f991aef030021b2d91 (diff)
i8k: Autodetect fan RPM multiplier
This patch adds new function i8k_get_fan_nominal_speed() for doing SMM call which will return nominal fan RPM for specified fan speed. It returns nominal RPM value at which fan operate when speed (0, 1, 2, 3) is set. It looks like RPM value is not accurate, but still provides very useful information. New function i8k_get_fan_nominal_speed() is used for determinate if fan multiplier is 1 or 30. If function for maximal fan value success and returned RPM value too high (above 30000) then fan multiplier is set to 1. Otherwise multiplier is not changed and default value 30 is used. Signed-off-by: Pali Rohár <[email protected]> Tested-by: Pali Rohár <[email protected]> Tested-by: Gabriele Mazzotta <[email protected]> Reviewed-by: Guenter Roeck <[email protected]> Signed-off-by: Greg Kroah-Hartman <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions