Implement an optional callback function for thermal sensors to set a trip
authorkettenis <kettenis@openbsd.org>
Thu, 27 Jun 2024 09:37:07 +0000 (09:37 +0000)
committerkettenis <kettenis@openbsd.org>
Thu, 27 Jun 2024 09:37:07 +0000 (09:37 +0000)
commit689107618d66b902cd58f715f9ac5d71f392fefc
tree7d290aab4d410fbe89c12d07280da092c95f17de
parent66b892aa8a957b4f3b178c2b7d0f92797065231e
Implement an optional callback function for thermal sensors to set a trip
limit to support thermal zones that don't do polling.  Thermal sensor
drivers should implement this callback if they can generate an interrupt
when the trop limit is reached and should call thermal_senser_update()
when that happens.

ok dlg@
sys/dev/ofw/ofw_thermal.c
sys/dev/ofw/ofw_thermal.h