Changeset 03b2163 in rtems


Ignore:
Timestamp:
Mar 1, 2019, 9:10:19 AM (8 weeks ago)
Author:
Sebastian Huber <sebastian.huber@…>
Branches:
master
Children:
e6dd36ca
Parents:
a3db5001
git-author:
Sebastian Huber <sebastian.huber@…> (03/01/19 09:10:19)
git-committer:
Sebastian Huber <sebastian.huber@…> (03/01/19 09:12:42)
Message:

score: Fix _Scheduler_EDF_Cancel_job()

Remove the priority node only in case it is active.

Files:
3 edited

Legend:

Unmodified
Added
Removed
  • cpukit/score/src/scheduleredfreleasejob.c

    ra3db5001 r03b2163  
    8585  _Thread_Wait_acquire_critical( the_thread, queue_context );
    8686
    87   _Thread_Priority_remove( the_thread, priority_node, queue_context );
    88   _Priority_Node_set_inactive( priority_node );
     87  if ( _Priority_Node_is_active( priority_node ) ) {
     88    _Thread_Priority_remove( the_thread, priority_node, queue_context );
     89    _Priority_Node_set_inactive( priority_node );
     90  }
    8991
    9092  _Thread_Wait_release_critical( the_thread, queue_context );
  • testsuites/sptests/spedfsched02/init.c

    ra3db5001 r03b2163  
    3131rtems_task_priority Prio[7] = { 0,   2,   2,   2,   2,  100, 1 };
    3232
     33static void test_period_create_delete( void )
     34{
     35  rtems_status_code sc;
     36  rtems_id id;
     37
     38  sc = rtems_rate_monotonic_create(
     39    rtems_build_name( 'R', 'T', 'M', 'N' ),
     40    &id
     41  );
     42  rtems_test_assert( sc == RTEMS_SUCCESSFUL );
     43
     44  sc = rtems_rate_monotonic_delete( id );
     45  rtems_test_assert( sc == RTEMS_SUCCESSFUL );
     46}
     47
    3348rtems_task Init(
    3449  rtems_task_argument argument
     
    4156
    4257  TEST_BEGIN();
     58
     59  test_period_create_delete();
    4360
    4461  Task_name[ 1 ] =  rtems_build_name( 'T', 'A', '1', ' ' );
Note: See TracChangeset for help on using the changeset viewer.