forked from Imagelibrary/rtems
score: Remove CPU_PROVIDES_IDLE_THREAD_BODY
Remove the CPU_PROVIDES_IDLE_THREAD_BODY option to avoid unnecessary conditional compilation. Close #3539.
This commit is contained in:
@@ -41,13 +41,7 @@ static void do_nothing_task(rtems_task_argument arg)
|
||||
{
|
||||
(void) arg;
|
||||
|
||||
#if CPU_PROVIDES_IDLE_THREAD_BODY == TRUE
|
||||
_CPU_Thread_Idle_body(0);
|
||||
#else
|
||||
while (true) {
|
||||
/* Do nothing */
|
||||
}
|
||||
#endif
|
||||
}
|
||||
|
||||
static void test(void)
|
||||
|
||||
@@ -245,13 +245,7 @@ static void busy_task(rtems_task_argument arg)
|
||||
{
|
||||
(void) arg;
|
||||
|
||||
#if CPU_PROVIDES_IDLE_THREAD_BODY == TRUE
|
||||
_CPU_Thread_Idle_body(0);
|
||||
#else
|
||||
while (true) {
|
||||
/* Do nothing */
|
||||
}
|
||||
#endif
|
||||
}
|
||||
|
||||
static const char *blocked_or_ready(bool blocked)
|
||||
|
||||
Reference in New Issue
Block a user