Skip to content

hwmon: (dell-smm) Improve ioctl handler

Armin Wolf linux-hwmon lkml 2 versions – In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v2 Latest2 patches 3 repliesIn review
  2. v12 patches 12 repliesSuperseded

Changes in v2 from the cover letter

- simplify logic between mutex_lock()/_unlock()
- replace hardcoded values with sizeof statements

Patches in v2 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/2hwmon: (dell-smm) Simplify ioctl handlerdrivers/hwmon/dell-smm-hwmon.c+9 -212 replies
2/2hwmon: (dell-smm) Unify i8k_ioctl() and i8k_ioctl_unlocked()drivers/hwmon/dell-smm-hwmon.c+9 -191 reply

Reviews trailers per patch

All 2 patches have a Reviewed-by or Acked-by.

PatchPali Rohár
1/2R-b
2/2R-b

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v2 thread

Cover letter [PATCH v2 0/2] hwmon: (dell-smm) Improve ioctl handler

This patch series improves the ioctl handler in dell_smm_hwmon. The first patch is simplifying the ioctl handler by removing an unnecessary switch case, while the second patch is unifying both i8k_ioctl() and i8k_ioctl_unlocked(), resulting in better performance since i8k_mutex is only acquired when needed (during fan status change) instead of being acquired for every ioctl call.

Tested on a Dell Inspiron 3505.

changes in v2:
- simplify logic between mutex_lock()/_unlock()
- replace hardcoded values with sizeof statements

Armin Wolf (2):
hwmon: (dell-smm) Simplify ioctl handler
hwmon: (dell-smm) Unify i8k_ioctl() and i8k_ioctl_unlocked()

 drivers/hwmon/dell-smm-hwmon.c | 58 +++++++++++-----------------------
 1 file changed, 18 insertions(+), 40 deletions(-)

--
2.30.2