]> git.baikalelectronics.ru Git - kernel.git/commit
hwmon: (coretemp) Handle frozen hotplug state correctly
authorThomas Gleixner <tglx@linutronix.de>
Wed, 10 May 2017 14:30:12 +0000 (16:30 +0200)
committerGuenter Roeck <linux@roeck-us.net>
Sun, 14 May 2017 14:49:32 +0000 (07:49 -0700)
commit806fd544eb1d2d1a74874785113212588d6aff3c
tree5d7d77a0b4a51860d736b10e529869a8a7a09b7c
parent81e0e7134ab085ac5d0890177bfed38a0f2be4f8
hwmon: (coretemp) Handle frozen hotplug state correctly

The recent conversion to the hotplug state machine missed that the original
hotplug notifiers did not execute in the frozen state, which is used on
suspend on resume.

This does not matter on single socket machines, but on multi socket systems
this breaks when the device for a non-boot socket is removed when the last
CPU of that socket is brought offline. The device removal locks up the
machine hard w/o any debug output.

Prevent executing the hotplug callbacks when cpuhp_tasks_frozen is true.

Thanks to Tommi for providing debug information patiently while I failed to
spot the obvious.

Fixes: 5a619d9fdab1 ("hwmon: (coretemp) Convert to hotplug state machine")
Reported-by: Tommi Rantala <tt.rantala@gmail.com>
Tested-by: Tommi Rantala <tt.rantala@gmail.com>
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Signed-off-by: Guenter Roeck <linux@roeck-us.net>
drivers/hwmon/coretemp.c