diff options
Diffstat (limited to 'cpukit/score/src/schedulerdefaultmappriority.c')
-rw-r--r-- | cpukit/score/src/schedulerdefaultmappriority.c | 14 |
1 files changed, 11 insertions, 3 deletions
diff --git a/cpukit/score/src/schedulerdefaultmappriority.c b/cpukit/score/src/schedulerdefaultmappriority.c index 37a600011e..228549f20d 100644 --- a/cpukit/score/src/schedulerdefaultmappriority.c +++ b/cpukit/score/src/schedulerdefaultmappriority.c @@ -1,5 +1,5 @@ /* - * Copyright (c) 2016 embedded brains GmbH + * Copyright (c) 2016, 2017 embedded brains GmbH * * The license and distribution terms for this file may be * found in the file LICENSE in this distribution or at @@ -10,12 +10,20 @@ #include "config.h" #endif -#include <rtems/score/scheduler.h> +#include <rtems/score/schedulerimpl.h> Priority_Control _Scheduler_default_Map_priority( const Scheduler_Control *scheduler, Priority_Control priority ) { - return priority; + return SCHEDULER_PRIORITY_MAP( priority ); +} + +Priority_Control _Scheduler_default_Unmap_priority( + const Scheduler_Control *scheduler, + Priority_Control priority +) +{ + return SCHEDULER_PRIORITY_UNMAP( priority ); } |