]> granicus.if.org Git - esp-idf/commit
pm: prevent entering light sleep again immediately after wakeup
authorIvan Grokhotkov <ivan@espressif.com>
Thu, 1 Nov 2018 11:38:48 +0000 (19:38 +0800)
committerbot <bot@espressif.com>
Wed, 21 Nov 2018 03:42:15 +0000 (03:42 +0000)
commit96c2b34eb9d1f5a0c5168c042ecf363d63c67f51
tree24e524f7e266f33e64d3b2605cccf4ee7e0f3e8a
parent6b3a8acdc30c534f91aeca97820072053be275e4
pm: prevent entering light sleep again immediately after wakeup

When light sleep is finished on one CPU, it is possible that the other
CPU will enter light sleep again very soon, before interrupts on the
first CPU get a chance to run. To avoid such situation, set a flag
for the other CPU to skip light sleep attempt.
components/esp32/pm_esp32.c