diff options
author | Sebastian Huber <sebastian.huber@embedded-brains.de> | 2013-07-18 11:53:48 +0200 |
---|---|---|
committer | Sebastian Huber <sebastian.huber@embedded-brains.de> | 2013-07-22 16:46:01 +0200 |
commit | 05e82bd76b057bf60f8590c5226561538ba9057e (patch) | |
tree | fd84479c03e705bb5ab414b2364e0b131f6d2eef /cpukit/sapi/include/confdefs.h | |
parent | rtems: Error for task variables on SMP (diff) | |
download | rtems-05e82bd76b057bf60f8590c5226561538ba9057e.tar.bz2 |
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.
Diffstat (limited to 'cpukit/sapi/include/confdefs.h')
-rw-r--r-- | cpukit/sapi/include/confdefs.h | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/cpukit/sapi/include/confdefs.h b/cpukit/sapi/include/confdefs.h index b7cbfaa676..c969fa78de 100644 --- a/cpukit/sapi/include/confdefs.h +++ b/cpukit/sapi/include/confdefs.h @@ -1021,7 +1021,11 @@ const rtems_libio_helper rtems_fs_init_helper = #endif #ifndef CONFIGURE_INIT_TASK_INITIAL_MODES - #define CONFIGURE_INIT_TASK_INITIAL_MODES RTEMS_NO_PREEMPT + #if defined(RTEMS_SMP) && defined(CONFIGURE_SMP_APPLICATION) + #define CONFIGURE_INIT_TASK_INITIAL_MODES RTEMS_DEFAULT_MODES + #else + #define CONFIGURE_INIT_TASK_INITIAL_MODES RTEMS_NO_PREEMPT + #endif #endif #ifndef CONFIGURE_INIT_TASK_ARGUMENTS |