Changeset 05e82bd7 in rtems for cpukit/sapi


Ignore:
Timestamp:
Jul 18, 2013, 9:53:48 AM (6 years ago)
Author:
Sebastian Huber <sebastian.huber@…>
Branches:
4.11, master
Children:
9c743e8e
Parents:
79d9523
git-author:
Sebastian Huber <sebastian.huber@…> (07/18/13 09:53:48)
git-committer:
Sebastian Huber <sebastian.huber@…> (07/22/13 14:46:01)
Message:

score: Error for non-preemptible tasks on SMP

A common use case for disabled preemption was to ensure mutual exclusion
on single-processor configurations. On SMP this does not work.

To abandon non-preemptible tasks simplifies the scheduler.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • cpukit/sapi/include/confdefs.h

    r79d9523 r05e82bd7  
    10221022
    10231023#ifndef CONFIGURE_INIT_TASK_INITIAL_MODES
    1024   #define CONFIGURE_INIT_TASK_INITIAL_MODES RTEMS_NO_PREEMPT
     1024  #if defined(RTEMS_SMP) && defined(CONFIGURE_SMP_APPLICATION)
     1025    #define CONFIGURE_INIT_TASK_INITIAL_MODES RTEMS_DEFAULT_MODES
     1026  #else
     1027    #define CONFIGURE_INIT_TASK_INITIAL_MODES RTEMS_NO_PREEMPT
     1028  #endif
    10251029#endif
    10261030
Note: See TracChangeset for help on using the changeset viewer.