X-Git-Url: https://codewiz.org/gitweb?a=blobdiff_plain;f=bertos%2Fcpu%2Fpower.h;h=f161c698f40ebf14f261d4b77323138e45f98cfb;hb=4a6c61fe16bd6cb872bc464f4b2002ed0a143504;hp=d73eb621a785ef17629ff03e25748820983d476f;hpb=32d1445272120a254d77ce8d1af1f527da7a2c17;p=bertos.git diff --git a/bertos/cpu/power.h b/bertos/cpu/power.h index d73eb621..f161c698 100644 --- a/bertos/cpu/power.h +++ b/bertos/cpu/power.h @@ -40,6 +40,8 @@ #include "cfg/cfg_proc.h" #include "cfg/cfg_wdt.h" +#include + #if CONFIG_KERN #include #endif @@ -66,6 +68,7 @@ */ INLINE void cpu_relax(void) { + MEMORY_BARRIER; #if CONFIG_KERN if (proc_preemptAllowed()) proc_yield();