projects
/
bertos.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
lm3s8962: add an example application for this specific board.
[bertos.git]
/
bertos
/
cpu
/
power.h
diff --git
a/bertos/cpu/power.h
b/bertos/cpu/power.h
index 93c40c0394936d09552074b905eb423e9b4113aa..d73eb621a785ef17629ff03e25748820983d476f 100644
(file)
--- a/
bertos/cpu/power.h
+++ b/
bertos/cpu/power.h
@@
-67,7
+67,8
@@
INLINE void cpu_relax(void)
{
#if CONFIG_KERN
- proc_yield();
+ if (proc_preemptAllowed())
+ proc_yield();
#endif
#if CONFIG_WATCHDOG