2
0
mirror of https://github.com/edk2-porting/linux-next.git synced 2024-12-27 06:34:11 +08:00
linux-next/Documentation/driver-api/thermal
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
..
cpu-cooling-api.rst
cpu-idle-cooling.rst docs: thermal: convert cpu-idle-cooling.rst to ReST 2020-06-19 14:03:00 -06:00
exynos_thermal_emulation.rst
exynos_thermal.rst thermal: exynos: Rename Samsung and Exynos to lowercase 2020-01-27 10:24:32 +01:00
index.rst doc: thermal: add cpu-idle-cooling to index tree 2020-05-05 09:57:14 -06:00
intel_powerclamp.rst
nouveau_thermal.rst Replace HTTP links with HTTPS ones: Documentation/driver-api 2020-06-26 11:09:04 -06:00
power_allocator.rst PM: EM: Clarify abstract scale usage for power values in Energy Model 2020-11-10 20:29:28 +01:00
sysfs-api.rst thermal: Use generic HW-protection shutdown API 2021-06-21 13:08:37 +01:00
x86_pkg_temperature_thermal.rst