From 08ac4ac86f50ed36c06abd5dd12109974009fb1a Mon Sep 17 00:00:00 2001 From: bernie Date: Tue, 16 Nov 2004 21:57:59 +0000 Subject: [PATCH] CPU_IDLE: Rename from SCHEDULER_IDLE. git-svn-id: https://src.develer.com/svnoss/bertos/trunk@280 38d2e660-2303-0410-9eaa-f027e97ec537 --- cpu.h | 14 ++++++++++---- 1 file changed, 10 insertions(+), 4 deletions(-) diff --git a/cpu.h b/cpu.h index df177e34..6042d9e0 100755 --- a/cpu.h +++ b/cpu.h @@ -17,6 +17,9 @@ /*#* *#* $Log$ + *#* Revision 1.22 2004/11/16 21:57:59 bernie + *#* CPU_IDLE: Rename from SCHEDULER_IDLE. + *#* *#* Revision 1.21 2004/11/16 21:34:25 bernie *#* Commonize obsolete names for IRQ macros; Doxygen fixes. *#* @@ -368,16 +371,19 @@ STATIC_ASSERT(sizeof(int) == SIZEOF_INT); * profile system load with an external strobe, or to save CPU cycles * in hosted environments such as emulators. */ -#ifndef SCHEDULER_IDLE +#ifndef CPU_IDLE #if defined(ARCH_EMUL) && (ARCH & ARCH_EMUL) /* This emulator hook should yield the CPU to the host. */ EXTERN_C_BEGIN void SchedulerIdle(void); EXTERN_C_END - #define SCHEDULER_IDLE SchedulerIdle() + #define CPU_IDLE SchedulerIdle() #else /* !ARCH_EMUL */ - #define SCHEDULER_IDLE do { /* nothing */ } while (0) + #define CPU_IDLE do { /* nothing */ } while (0) #endif /* !ARCH_EMUL */ -#endif /* !SCHEDULER_IDLE */ +#endif /* !CPU_IDLE */ + +/* OBSOLETE */ +#define SCHEDULER_IDLE CPU_IDLE #endif /* DEVLIB_CPU_H */ -- 2.25.1