Changeset 7a34ca37 in rtems


Ignore:
Timestamp:
Jun 11, 2013, 3:09:02 PM (6 years ago)
Author:
Sebastian Huber <sebastian.huber@…>
Branches:
4.11, master
Children:
ec978d9
Parents:
6f8adb0
git-author:
Sebastian Huber <sebastian.huber@…> (06/11/13 15:09:02)
git-committer:
Sebastian Huber <sebastian.huber@…> (06/14/13 14:26:06)
Message:

rtems: Simplify rtems_task_mode()

File:
1 edited

Legend:

Unmodified
Added
Removed
  • cpukit/rtems/src/taskmode.c

    r6f8adb0 r7a34ca37  
    4343  RTEMS_API_Control  *api;
    4444  ASR_Information    *asr;
    45   bool                is_asr_enabled = false;
    46   bool                needs_asr_dispatching = false;
     45  bool                needs_asr_dispatching;
    4746  rtems_mode          old_mode;
    4847
     
    7069   */
    7170  if ( mask & RTEMS_PREEMPT_MASK )
    72     executing->is_preemptible = _Modes_Is_preempt(mode_set) ? true : false;
     71    executing->is_preemptible = _Modes_Is_preempt( mode_set );
    7372
    7473  if ( mask & RTEMS_TIMESLICE_MASK ) {
     
    8988   *  This is specific to the RTEMS API
    9089   */
    91   is_asr_enabled = false;
    9290  needs_asr_dispatching = false;
     91  if ( mask & RTEMS_ASR_MASK ) {
     92    bool is_asr_enabled = !_Modes_Is_asr_disabled( mode_set );
    9393
    94   if ( mask & RTEMS_ASR_MASK ) {
    95     is_asr_enabled = _Modes_Is_asr_disabled( mode_set ) ? false : true;
    9694    if ( is_asr_enabled != asr->is_enabled ) {
    9795      asr->is_enabled = is_asr_enabled;
Note: See TracChangeset for help on using the changeset viewer.