Ticket #1590: timeslice.diff

File timeslice.diff, 1.6 KB (added by Gedare Bloom, on Jun 24, 2010 at 4:51:11 PM)

replaces the call to _Thread_Reset_timeslice with _Thread_Yield_processor in _Thread_Tickle_timeslice.

  • Makefile.am

    RCS file: /usr1/CVS/rtems/cpukit/score/Makefile.am,v
    retrieving revision 1.81
    diff -u -p -r1.81 Makefile.am
    libscore_a_SOURCES += src/thread.c src/t 
    143143    src/threadclearstate.c src/threadclose.c src/threadcreateidle.c \
    144144    src/threaddelayended.c src/threaddispatch.c src/threadevaluatemode.c \
    145145    src/threadget.c src/threadhandler.c src/threadinitialize.c \
    146     src/threadloadenv.c src/threadready.c src/threadresettimeslice.c \
     146    src/threadloadenv.c src/threadready.c \
    147147    src/threadreset.c src/threadrestart.c src/threadresume.c \
    148148    src/threadsetpriority.c src/threadsetstate.c src/threadsettransient.c \
    149149    src/threadstackallocate.c src/threadstackfree.c src/threadstart.c \
  • src/threadtickletimeslice.c

    RCS file: /usr1/CVS/rtems/cpukit/score/src/threadtickletimeslice.c,v
    retrieving revision 1.11
    diff -u -p -r1.11 threadtickletimeslice.c
    void _Thread_Tickle_timeslice( void ) 
    8080      case THREAD_CPU_BUDGET_ALGORITHM_EXHAUST_TIMESLICE:
    8181    #endif
    8282      if ( (int)(--executing->cpu_time_budget) <= 0 ) {
    83         _Thread_Reset_timeslice();
     83        _Thread_Yield_processor();
    8484        executing->cpu_time_budget = _Thread_Ticks_per_timeslice;
    8585      }
    8686      break;