diff options
author | Jennifer Averett <Jennifer.Averett@OARcorp.com> | 2011-08-01 14:17:44 +0000 |
---|---|---|
committer | Jennifer Averett <Jennifer.Averett@OARcorp.com> | 2011-08-01 14:17:44 +0000 |
commit | bc018b12ebb21220b33b58432bf534b4857fb6d4 (patch) | |
tree | 2061212c8d659e911d33057612fddc012d367312 /cpukit/score/src | |
parent | 2011-08-01 Sebastien Bourdeauducq <sebastien.bourdeauducq@gmail.com> (diff) | |
download | rtems-bc018b12ebb21220b33b58432bf534b4857fb6d4.tar.bz2 |
2011-08-01 Jennifer Averett <Jennifer.Averett@OARcorp.com>
* score/src/schedulersimplesmpschedule.c: Fix bug in smp simple
scheduler.
Diffstat (limited to 'cpukit/score/src')
-rw-r--r-- | cpukit/score/src/schedulersimplesmpschedule.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/cpukit/score/src/schedulersimplesmpschedule.c b/cpukit/score/src/schedulersimplesmpschedule.c index 701cadb5db..d8fd06c400 100644 --- a/cpukit/score/src/schedulersimplesmpschedule.c +++ b/cpukit/score/src/schedulersimplesmpschedule.c @@ -93,12 +93,12 @@ bool _Scheduler_simple_smp_Assign( } if ( !_States_Is_ready( e->current_state ) ) { - pheir = h; + pheir = e; found_cpu = cpu; found = true; blocked = true; D( "SCHED CPU=%d PHeir=0x%08x considering=0x%08x BLOCKED\n", - cpu, h->Object.id, consider->Object.id ); + cpu, e->Object.id, consider->Object.id ); continue; } @@ -182,6 +182,8 @@ bool _Scheduler_simple_smp_Assign( * inversions and let threads run earlier. */ if ( !pheir->is_preemptible && h->is_preemptible ) { + D( "SCHED CPU=%d PHeir==0x%08x is NOT PREEMPTIBLE\n", + cpu, pheir->Object.id ); pheir = h; found_cpu = cpu; D( "SCHED CPU=%d PHeir=0x%08x considering=0x%08x PREEMPTIBLE\n", |