projects
/
bertos.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Add -fomit-frame-pointer when we are not in debug mode.
[bertos.git]
/
bertos
/
cpu
/
power.h
diff --git
a/bertos/cpu/power.h
b/bertos/cpu/power.h
index 035495d47811aa1016bf2f41d56dd36046b04813..d73eb621a785ef17629ff03e25748820983d476f 100644
(file)
--- a/
bertos/cpu/power.h
+++ b/
bertos/cpu/power.h
@@
-37,10
+37,10
@@
#ifndef CPU_POWER_H
#define CPU_POWER_H
#ifndef CPU_POWER_H
#define CPU_POWER_H
-#include
<cfg/cfg_kern.h>
-#include
<cfg/cfg_wdt.h>
+#include
"cfg/cfg_proc.h"
+#include
"cfg/cfg_wdt.h"
-#if CONFIG_KERN
EL
+#if CONFIG_KERN
#include <kern/proc.h>
#endif
#include <kern/proc.h>
#endif
@@
-66,8
+66,9
@@
*/
INLINE void cpu_relax(void)
{
*/
INLINE void cpu_relax(void)
{
-#if CONFIG_KERNEL
- proc_yield();
+#if CONFIG_KERN
+ if (proc_preemptAllowed())
+ proc_yield();
#endif
#if CONFIG_WATCHDOG
#endif
#if CONFIG_WATCHDOG