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: Add PM Quick Sleep #6293

Closed gSahitya-samsung closed 2 months ago

gSahitya-samsung commented 2 months ago

This PR adds the feature to make board sleep quickly after wakeup. The quick sleep feature is needed to save upmost power when board need to wakeup aperiodically to serve timer expiration callback. For frequent timer expiration case if we do not allow quick sleep then board will remain wakeup for very long time resulting in no power saving.

Note - Now board can sleep immediately after wakeup. It's better to use pm_suspend if application want to suspend board working state.

edwakuwaku commented 2 months ago

@gSahitya-samsung could you please revert ameba_tizenrt_pmu.c/.h? I will make necessary changes in my PR..