]> 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)
committerIvan Grokhotkov <ivan@espressif.com>
Mon, 5 Nov 2018 04:18:29 +0000 (12:18 +0800)
commit0716e65955708c77b221b6c1357926f19ec0eb27
treed13a14b70010515ccf06ba46ec933c95ed75514c
parent22dd3103bd0f919347404d65379d11d7a46bfbc7
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