[rtems commit] sapi: Fix user scheduler configuration

Joel Sherrill joel.sherrill at OARcorp.com
Wed Nov 7 14:58:41 UTC 2012


Can you double check that the users guide configuration chapter describes this correctly as well?

Sebastian Huber <sebh at rtems.org> wrote:

>Module:    rtems
>Branch:    master
>Commit:    b59675438e6305dda5325ea1f9eb515d902888e9
>Changeset: http://git.rtems.org/rtems/commit/?id=b59675438e6305dda5325ea1f9eb515d902888e9
>
>Author:    Sebastian Huber <sebastian.huber at embedded-brains.de>
>Date:      Wed Nov  7 10:19:46 2012 +0100
>
>sapi: Fix user scheduler configuration
>
>The comment in confdefs.h shows how to do it:
>
>An application can define its own scheduling policy by defining
>CONFIGURE_SCHEDULER_USER and the following:
>   - CONFIGURE_SCHEDULER_ENTRY_POINTS
>   - CONFIGURE_MEMORY_FOR_SCHEDULER - base memory
>   - CONFIGURE_MEMORY_PER_TASK_FOR_SCHEDULER - per task memory
>
>---
>
> cpukit/sapi/include/confdefs.h |   13 -------------
> 1 files changed, 0 insertions(+), 13 deletions(-)
>
>diff --git a/cpukit/sapi/include/confdefs.h b/cpukit/sapi/include/confdefs.h
>index 00ba59b..e154a7a 100644
>--- a/cpukit/sapi/include/confdefs.h
>+++ b/cpukit/sapi/include/confdefs.h
>@@ -594,11 +594,6 @@ rtems_fs_init_functions_t    rtems_fs_init_helper =
>  */
> #include <rtems/score/scheduler.h>
> 
>-#if defined(CONFIGURE_SCHEDULER_USER) && \
>-    !defined(CONFIGURE_SCHEDULER_USER_ENTRY_POINTS)
>-  #error "CONFIGURE_ERROR: CONFIGURE_SCHEDULER_USER requires CONFIGURE_SCHEDULER_USER_ENTRY_POINTS"
>-#endif
>-
> #if !defined(RTEMS_SMP)
>   #undef CONFIGURE_SCHEDULER_SIMPLE_SMP
> #endif
>@@ -710,14 +705,6 @@ rtems_fs_init_functions_t    rtems_fs_init_helper =
>     _Configure_From_workspace(sizeof(Scheduler_CBS_Per_thread)))
> #endif
> 
>-#if defined(CONFIGURE_SCHEDULER_USER)
>-  #define CONFIGURE_SCHEDULER_ENTRY_POINTS \
>-          CONFIGURE_SCHEDULER_USER_ENTRY_POINTS
>-
>-  #define CONFIGURE_SCHEDULER_MEMORY_FOR_SCHEDULER \
>-          CONFIGURE_SCHEDULER_USER_MEMORY_FOR_SCHEDULER
>-#endif
>-
> /* 
>  * Set up the scheduler entry points table.  The scheduling code uses
>  * this code to know which scheduler is configured by the user.
>
>_______________________________________________
>rtems-vc mailing list
>rtems-vc at rtems.org
>http://www.rtems.org/mailman/listinfo/rtems-vc




More information about the devel mailing list