summaryrefslogtreecommitdiff
path: root/kernel
diff options
context:
space:
mode:
authorArmin Wolf <W_Armin@gmx.de>2021-10-21 21:05:31 +0200
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2022-02-16 12:51:47 +0100
commit48fe82f8a7fa7590740d74978c97e3549883a6f6 (patch)
tree386f7f92e9f55329956f8aa9394c126313e3667f /kernel
parent255264d81da6edaf4cd4fab836d1ef3ba09af6aa (diff)
hwmon: (dell-smm) Speed up setting of fan speed
commit c0d79987a0d82671bff374c07f2201f9bdf4aaa2 upstream. 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 <W_Armin@gmx.de> Reviewed-by: Pali Rohár <pali@kernel.org> Link: https://lore.kernel.org/r/20211021190531.17379-6-W_Armin@gmx.de Signed-off-by: Guenter Roeck <linux@roeck-us.net> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'kernel')
0 files changed, 0 insertions, 0 deletions