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:
parent
21973963c0
commit
5447203921
@ -75,6 +75,7 @@ void pm_set_lowest(void)
|
|||||||
irq_restore(state);
|
irq_restore(state);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
__attribute__((optimize(3)))
|
||||||
void pm_block(unsigned mode)
|
void pm_block(unsigned mode)
|
||||||
{
|
{
|
||||||
DEBUG("[pm_layered] pm_block(%d)\n", mode);
|
DEBUG("[pm_layered] pm_block(%d)\n", mode);
|
||||||
@ -85,6 +86,7 @@ void pm_block(unsigned mode)
|
|||||||
irq_restore(state);
|
irq_restore(state);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
__attribute__((optimize(3)))
|
||||||
void pm_unblock(unsigned mode)
|
void pm_unblock(unsigned mode)
|
||||||
{
|
{
|
||||||
DEBUG("[pm_layered] pm_unblock(%d)\n", mode);
|
DEBUG("[pm_layered] pm_unblock(%d)\n", mode);
|
||||||
|
Loading…
Reference in New Issue
Block a user