Skip to content

hwmon/coretemp: Hotplug fixes, cleanups and state machine conversion

Thomas Gleixner linux-hwmon lkml 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest6 patches 15 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/6hwmon/coretemp: Fixup target cpu for package when cpu is offlineddrivers/hwmon/coretemp.c+24 -70 replies
2/6hwmon/coretemp: Simplify sibling managementdrivers/hwmon/coretemp.c+38 -570 replies
3/6hwmon/coretemp: Avoid redundant lookupsdrivers/hwmon/coretemp.c+6 -130 replies
4/6hwmon/coretemp: Convert to hotplug state machinedrivers/hwmon/coretemp.c+29 -570 replies
5/6hwmon/coretemp: Use proper error codes in cpu online callbackdrivers/hwmon/coretemp.c+5 -190 replies
6/6hwmon/coretemp: Simplify package managementdrivers/hwmon/coretemp.c+38 -820 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [patch 0/6] hwmon/coretemp: Hotplug fixes, cleanups and state machine conversion

After the first attempt to convert the coretemp driver to the hotplug state machine failed, we had a deeper look and went a bit farther.

The driver has quite some interesting concepts vs. the package, core and sysfs file management and a bug in the package temperature sysfs interface vs. cpu hotplug.

The following series fixes that bug and simplifies the package/core management and at the end converts it to the hotplug state machine.

Along with the source size the binary size shrinks as well:

   text	   data	    bss	    dec	    hex	
   4068	   360       20    4448    1160	  Before
   3801	   180       36    4017     fb1	  After

Thanks,

tglx
-----

 coretemp.c |  321 +++++++++++++++++++++----------------------------------------
 1 file changed, 113 insertions(+), 208 deletions(-)