diff options
author | Matti Vaittinen <[email protected]> | 2021-06-03 08:41:03 +0300 |
---|---|---|
committer | Mark Brown <[email protected]> | 2021-06-21 13:08:37 +0100 |
commit | db0aeb4f074f7023da26fb65078197c39590346b (patch) | |
tree | dc26205ecdcc5f435ff2d8f37bf06372f6073dbf /tools/perf/scripts/python/export-to-postgresql.py | |
parent | dfa19b11385d4cf8f0242fd93e2073e25183c331 (diff) |
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/[email protected]/
Use the exported API instead of implementing own just for the
thermal_core.
Signed-off-by: Matti Vaittinen <[email protected]>
Acked-by: Daniel Lezcano <[email protected]>
Link: https://lore.kernel.org/r/5531e89d9e710f5d10e7cdce3ee58957335b9e03.1622628333.git.matti.vaittinen@fi.rohmeurope.com
Signed-off-by: Mark Brown <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/export-to-postgresql.py')
0 files changed, 0 insertions, 0 deletions