diff options
| author | Armin Wolf <[email protected]> | 2021-10-21 19:05:31 +0000 |
|---|---|---|
| committer | Guenter Roeck <[email protected]> | 2021-10-21 20:14:27 +0000 |
| commit | c0d79987a0d82671bff374c07f2201f9bdf4aaa2 (patch) | |
| tree | 0d8dc6f7d726d96fe901c12f040d6b9f7f1504cc /scripts/gcc-plugins/cyc_complexity_plugin.c | |
| parent | hwmon: (dell-smm) Add comment explaining usage of i8k_config_data[] (diff) | |
| download | kernel-c0d79987a0d82671bff374c07f2201f9bdf4aaa2.tar.gz kernel-c0d79987a0d82671bff374c07f2201f9bdf4aaa2.zip | |
hwmon: (dell-smm) Speed up setting of fan speed
When setting the fan speed, i8k_set_fan() calls i8k_get_fan_status(),
causing an unnecessary SMM call since from the two users of this
function, only i8k_ioctl_unlocked() needs to know the new fan status
while dell_smm_write() ignores the new fan status.
Since SMM calls can be very slow while also making error reporting
difficult for dell_smm_write(), remove the function call from
i8k_set_fan() and call it separately in i8k_ioctl_unlocked().
Tested on a Dell Inspiron 3505.
Signed-off-by: Armin Wolf <[email protected]>
Reviewed-by: Pali Rohár <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Guenter Roeck <[email protected]>
Diffstat (limited to 'scripts/gcc-plugins/cyc_complexity_plugin.c')
0 files changed, 0 insertions, 0 deletions
