Changeset 27f0d424 in rtems


Ignore:
Timestamp:
Oct 15, 1996, 9:38:43 PM (25 years ago)
Author:
Joel Sherrill <joel.sherrill@…>
Branches:
4.10, 4.11, 4.8, 4.9, 5, master
Children:
39cafa5
Parents:
f8c6333
Message:

added support for cpu time used field in tcb

Files:
2 edited

Legend:

Unmodified
Added
Removed
  • c/src/exec/score/src/thread.c

    rf8c6333 r27f0d424  
    519519  the_thread->real_priority          = priority;
    520520  the_thread->Start.initial_priority = priority;
     521  the_thread->ticks_executed         = 0;
    521522 
    522523  _Thread_Set_priority( the_thread, priority );
     
    946947  executing = _Thread_Executing;
    947948
     949  /*
     950   *  Increment the number of ticks this thread has been executing
     951   */
     952
     953  executing->ticks_executed++;
     954
     955  /*
     956   *  If the thread is not preemptible or is not ready, then
     957   *  just return.
     958   */
     959
    948960  if ( !executing->is_preemptible )
    949961    return;
     
    951963  if ( !_States_Is_ready( executing->current_state ) )
    952964    return;
     965
     966  /*
     967   *  The cpu budget algorithm determines what happens next.
     968   */
    953969
    954970  switch ( executing->budget_algorithm ) {
  • cpukit/score/src/thread.c

    rf8c6333 r27f0d424  
    519519  the_thread->real_priority          = priority;
    520520  the_thread->Start.initial_priority = priority;
     521  the_thread->ticks_executed         = 0;
    521522 
    522523  _Thread_Set_priority( the_thread, priority );
     
    946947  executing = _Thread_Executing;
    947948
     949  /*
     950   *  Increment the number of ticks this thread has been executing
     951   */
     952
     953  executing->ticks_executed++;
     954
     955  /*
     956   *  If the thread is not preemptible or is not ready, then
     957   *  just return.
     958   */
     959
    948960  if ( !executing->is_preemptible )
    949961    return;
     
    951963  if ( !_States_Is_ready( executing->current_state ) )
    952964    return;
     965
     966  /*
     967   *  The cpu budget algorithm determines what happens next.
     968   */
    953969
    954970  switch ( executing->budget_algorithm ) {
Note: See TracChangeset for help on using the changeset viewer.