From 5e9b43efe4fb475b81870d21bdb92985827cbbef Mon Sep 17 00:00:00 2001 From: batt Date: Mon, 22 Mar 2010 17:28:54 +0000 Subject: [PATCH] Do not call schedule() inside idle loop. git-svn-id: https://src.develer.com/svnoss/bertos/trunk@3259 38d2e660-2303-0410-9eaa-f027e97ec537 --- bertos/cpu/frame.h | 10 +--------- 1 file changed, 1 insertion(+), 9 deletions(-) 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 */ /** -- 2.25.1