1
0
mirror of https://github.com/RIOT-OS/RIOT.git synced 2024-12-29 04:50:03 +01:00

sys/pm_layered: pm_(un)block add attribute optimize(3) -shortens hotpath

This commit is contained in:
Karl Fessel 2022-11-04 16:51:30 +01:00
parent 21973963c0
commit 5447203921

View File

@ -75,6 +75,7 @@ void pm_set_lowest(void)
irq_restore(state);
}
__attribute__((optimize(3)))
void pm_block(unsigned mode)
{
DEBUG("[pm_layered] pm_block(%d)\n", mode);
@ -85,6 +86,7 @@ void pm_block(unsigned mode)
irq_restore(state);
}
__attribute__((optimize(3)))
void pm_unblock(unsigned mode)
{
DEBUG("[pm_layered] pm_unblock(%d)\n", mode);