Samsung / TizenRT

TizenRT is a lightweight RTOS-based platform to support low-end IoT devices
Apache License 2.0
566 stars 571 forks source link

os/pm: fix pm_timedsuspend cancel #6273

Closed gSahitya-samsung closed 2 months ago

gSahitya-samsung commented 3 months ago

When a thread call pm_timedsuspend multiple times within timer expiration, then pm_timedsuspend doesn't stoping the timer, instead it was rasing error. Now when pm_timedsuspend call multiple times within timer expiration, then it changes timer duration to remain suspended for given time if it is greater than current expiration time. If application provide zero time interval, then it cancel the timer immediately and resume the suspended domain.

ewoodev commented 2 months ago

@r-prabu @kishore-sn Could you review and merge?