Well, actually, having looked once again at the patch, I think that it'sslightly wrong. Namely, it looks like we just should drop all of the _FROZENactions from there.

Fixed patch follows and I think it's also a candidate for -stable.

---Subject: HWMON: coretemp, suspend fixIt's not permitted to unregister a device after devices have been suspended.It causes deadlocks to appear on systems with coretemp hwmon loaded. To avoidthis, we can make coretemp_cpu_callback() do nothing if the _FROZEN bit is setin action.

Also, in other cases it's generally to late to unregister the coretemp deviceif the CPU is already dead, so it should be unregistered on CPU_DOWN_PREPARE.