From: batt Date: Mon, 22 Mar 2010 17:28:54 +0000 (+0000) Subject: Do not call schedule() inside idle loop. X-Git-Tag: 2.4.0~5 X-Git-Url: https://codewiz.org/gitweb?a=commitdiff_plain;h=5e9b43efe4fb475b81870d21bdb92985827cbbef;p=bertos.git Do not call schedule() inside idle loop. git-svn-id: https://src.develer.com/svnoss/bertos/trunk@3259 38d2e660-2303-0410-9eaa-f027e97ec537 --- diff --git a/bertos/cpu/frame.h b/bertos/cpu/frame.h index 0809b0ec..e5c56468 100644 --- a/bertos/cpu/frame.h +++ b/bertos/cpu/frame.h @@ -209,15 +209,7 @@ * 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 */ /**