projects
/
bertos.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
aef90f5
)
Do not call schedule() inside idle loop.
author
batt
<batt@38d2e660-2303-0410-9eaa-f027e97ec537>
Mon, 22 Mar 2010 17:28:54 +0000
(17:28 +0000)
committer
batt
<batt@38d2e660-2303-0410-9eaa-f027e97ec537>
Mon, 22 Mar 2010 17:28:54 +0000
(17:28 +0000)
git-svn-id: https://src.develer.com/svnoss/bertos/trunk@3259
38d2e660
-2303-0410-9eaa-
f027e97ec537
bertos/cpu/frame.h
patch
|
blob
|
history
diff --git
a/bertos/cpu/frame.h
b/bertos/cpu/frame.h
index 0809b0eca4d86994baaa48706506f3b8ba4aa0fa..e5c564686c7280895e488b452dd0a16fc28c17f8 100644
(file)
--- 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 */
/**