Searched hist:da5e7ba54949aa4baf98e4976f18eb9564bb7cf1 (Results 1 – 2 of 2) sorted by relevance
| /optee_os/core/kernel/ |
| H A D | pm.c | da5e7ba54949aa4baf98e4976f18eb9564bb7cf1 Wed Aug 28 17:16:10 UTC 2024 Gatien Chevallier <gatien.chevallier@foss.st.com> core: pm: add unregister_pm_cb()
Add unregister_pm_cb() API function and its helper variants to allow unregistering a PM callback entry. This can be needed for example in the GPIO framework where gpio_put() can release a GPIO that a driver no more consumed. In case a PM callback was previously registered for such a GPIO, consumer driver needs mean to unregister it.
This change implies that the PM callbacks list is protected from concurrent accesses hence add a lock for that purpose.
Signed-off-by: Gatien Chevallier <gatien.chevallier@foss.st.com> Reviewed-by: Etienne Carriere <etienne.carriere@foss.st.com> Acked-by: Jerome Forissier <jerome.forissier@linaro.org>
|
| /optee_os/core/include/kernel/ |
| H A D | pm.h | da5e7ba54949aa4baf98e4976f18eb9564bb7cf1 Wed Aug 28 17:16:10 UTC 2024 Gatien Chevallier <gatien.chevallier@foss.st.com> core: pm: add unregister_pm_cb()
Add unregister_pm_cb() API function and its helper variants to allow unregistering a PM callback entry. This can be needed for example in the GPIO framework where gpio_put() can release a GPIO that a driver no more consumed. In case a PM callback was previously registered for such a GPIO, consumer driver needs mean to unregister it.
This change implies that the PM callbacks list is protected from concurrent accesses hence add a lock for that purpose.
Signed-off-by: Gatien Chevallier <gatien.chevallier@foss.st.com> Reviewed-by: Etienne Carriere <etienne.carriere@foss.st.com> Acked-by: Jerome Forissier <jerome.forissier@linaro.org>
|