score: Add and use Thread_Control::is_idle

Update #2797.
This commit is contained in:
Sebastian Huber
2016-11-07 16:54:40 +01:00
parent e6107854b2
commit 1f5bee3d85
7 changed files with 8 additions and 22 deletions

View File

@@ -132,8 +132,7 @@ void Clock_isr(void *arg_unused)
#ifdef CLOCK_DRIVER_USE_FAST_IDLE
do {
tlib_tc_tick();
} while ( _Thread_Executing == _Thread_Idle &&
_Thread_Heir == _Thread_Executing);
} while ( _Thread_Heir == _Thread_Executing && _Thread_Executing->is_idle );
return;