Do not call schedule() inside idle loop.
[bertos.git] / bertos / cpu / frame.h
index 0809b0eca4d86994baaa48706506f3b8ba4aa0fa..e5c564686c7280895e488b452dd0a16fc28c17f8 100644 (file)
  * in hosted environments such as emulators.
  */
 #ifndef CPU_IDLE
-       #if defined(ARCH_QT) && (ARCH & ARCH_QT)
-               /* This emulator hook should yield the CPU to the host.  */
-               EXTERN_C_BEGIN
-               void schedule(void);
-               EXTERN_C_END
-               #define CPU_IDLE schedule()
-       #else /* !ARCH_EMUL */
-               #define CPU_IDLE do { /* nothing */ } while (0)
-       #endif /* !ARCH_EMUL */
+       #define CPU_IDLE PAUSE
 #endif /* !CPU_IDLE */
 
 /**