Changeset 8bef4cc in rtems


Ignore:
Timestamp:
Jun 24, 2010, 9:27:30 PM (9 years ago)
Author:
Joel Sherrill <joel.sherrill@…>
Branches:
4.11, master
Children:
983bfad
Parents:
2d1994c9
Message:

2010-06-24 Gedare Bloom <giddyup44@…>

PR 1590/cpukit

  • score/Makefile.am, score/include/rtems/score/thread.h, score/src/threadtickletimeslice.c: Remove _Thread_Reset_timeslice and replaces its single use with a call to the functionally equivalent _Thread_Yield_processor().
  • score/src/threadresettimeslice.c: Removed.
Location:
cpukit
Files:
1 deleted
4 edited

Legend:

Unmodified
Added
Removed
  • cpukit/ChangeLog

    r2d1994c9 r8bef4cc  
     12010-06-24      Gedare Bloom <giddyup44@yahoo.com>
     2
     3        PR 1590/cpukit
     4        * score/Makefile.am, score/include/rtems/score/thread.h,
     5        score/src/threadtickletimeslice.c: Remove _Thread_Reset_timeslice and
     6        replaces its single use with a call to the functionally equivalent
     7        _Thread_Yield_processor().
     8        * score/src/threadresettimeslice.c: Removed.
     9
    1102010-06-24      Bharath Suri <bharath.s.jois@gmail.com>
    211
  • cpukit/score/Makefile.am

    r2d1994c9 r8bef4cc  
    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 \
    147     src/threadreset.c src/threadrestart.c src/threadresume.c \
    148     src/threadsetpriority.c src/threadsetstate.c src/threadsettransient.c \
     146    src/threadloadenv.c src/threadready.c src/threadreset.c \
     147    src/threadrestart.c src/threadresume.c src/threadsetpriority.c \
     148    src/threadsetstate.c src/threadsettransient.c \
    149149    src/threadstackallocate.c src/threadstackfree.c src/threadstart.c \
    150150    src/threadstartmultitasking.c src/threadsuspend.c \
  • cpukit/score/include/rtems/score/thread.h

    r2d1994c9 r8bef4cc  
    673673
    674674/**
    675  *  This routine is invoked upon expiration of the currently
    676  *  executing thread's timeslice.  If no other thread's are ready
    677  *  at the priority of the currently executing thread, then the
    678  *  executing thread's timeslice is reset.  Otherwise, the
    679  *  currently executing thread is placed at the rear of the
    680  *  FIFO for this priority and a new heir is selected.
    681  */
    682 void _Thread_Reset_timeslice( void );
    683 
    684 /**
    685675 *  This routine is invoked as part of processing each clock tick.
    686676 *  It is responsible for determining if the current thread allows
  • cpukit/score/src/threadtickletimeslice.c

    r2d1994c9 r8bef4cc  
    8181    #endif
    8282      if ( (int)(--executing->cpu_time_budget) <= 0 ) {
    83         _Thread_Reset_timeslice();
     83
     84        /*
     85         *  A yield performs the ready chain mechanics needed when
     86         *  resetting a timeslice.  If no other thread's are ready
     87         *  at the priority of the currently executing thread, then the
     88         *  executing thread's timeslice is reset.  Otherwise, the
     89         *  currently executing thread is placed at the rear of the
     90         *  FIFO for this priority and a new heir is selected.
     91         */
     92        _Thread_Yield_processor();
    8493        executing->cpu_time_budget = _Thread_Ticks_per_timeslice;
    8594      }
Note: See TracChangeset for help on using the changeset viewer.