diff options
author | Sebastian Huber <sebastian.huber@embedded-brains.de> | 2016-11-07 16:54:40 +0100 |
---|---|---|
committer | Sebastian Huber <sebastian.huber@embedded-brains.de> | 2016-11-09 15:27:30 +0100 |
commit | 1f5bee3d85405d42a7f35caf3ff0c190789afd60 (patch) | |
tree | d02b999781b8a135d079d23307b4396eeafc51fd /testsuites | |
parent | score: Rename _Scheduler_Assignments (diff) | |
download | rtems-1f5bee3d85405d42a7f35caf3ff0c190789afd60.tar.bz2 |
score: Add and use Thread_Control::is_idle
Update #2797.
Diffstat (limited to 'testsuites')
-rw-r--r-- | testsuites/sptests/spintrcritical_support/intrcritical.c | 8 |
1 files changed, 1 insertions, 7 deletions
diff --git a/testsuites/sptests/spintrcritical_support/intrcritical.c b/testsuites/sptests/spintrcritical_support/intrcritical.c index b831cf148f..a9fcdd2a37 100644 --- a/testsuites/sptests/spintrcritical_support/intrcritical.c +++ b/testsuites/sptests/spintrcritical_support/intrcritical.c @@ -173,18 +173,12 @@ bool interrupt_critical_section_test_support_delay(void) return interrupt_critical_busy_wait(); } -static bool is_idle( const Thread_Control *thread ) -{ - return thread->Start.Entry.Kinds.Idle.entry - == rtems_configuration_get_idle_task(); -} - static void thread_switch( Thread_Control *executing, Thread_Control *heir ) { (void) executing; (void) heir; - if ( interrupt_critical.t1 == 0 && is_idle( heir ) ) { + if ( interrupt_critical.t1 == 0 && heir->is_idle ) { interrupt_critical.t1 = rtems_clock_get_uptime_nanoseconds(); } } |