Matti Vaittinen db0aeb4f07
thermal: Use generic HW-protection shutdown API
The hardware shutdown function was exported from kernel/reboot for
other subsystems to use. Logic is copied from the thermal_core. The
protection mutex is replaced by an atomic_t to allow calls also from
an IRQ context. Also the WARN() was replaced by pr_emerg() based on
discussions here:
https://lore.kernel.org/lkml/YJuPwAZroVZ%2Fw633@alley/
and here:
https://lore.kernel.org/linux-iommu/20210331093104.383705-4-geert+renesas@glider.be/

Use the exported API instead of implementing own just for the
thermal_core.

Signed-off-by: Matti Vaittinen <matti.vaittinen@fi.rohmeurope.com>
Acked-by: Daniel Lezcano <daniel.lezcano@linaro.org>
Link: https://lore.kernel.org/r/5531e89d9e710f5d10e7cdce3ee58957335b9e03.1622628333.git.matti.vaittinen@fi.rohmeurope.com
Signed-off-by: Mark Brown <broonie@kernel.org>
2021-06-21 13:08:37 +01:00
..
2021-02-16 20:36:38 -08:00
2021-05-05 12:39:29 -07:00
2019-07-15 11:03:03 -03:00
2020-10-16 15:02:21 -07:00
2020-12-16 14:58:35 -08:00
2019-07-26 08:15:26 -06:00
2021-05-21 14:41:37 +02:00
2019-06-07 11:35:15 -06:00
2016-09-06 09:14:52 -06:00
2020-06-02 20:32:53 -03:00
2020-12-10 22:37:32 +01:00
2019-10-07 09:47:37 -07:00
2018-04-20 19:14:40 -04:00
2016-09-06 09:14:52 -06:00
2021-05-05 10:20:33 -06:00