From 7dfb4b970cbd22cef170b2f45a41f445406a2ce5 Mon Sep 17 00:00:00 2001 From: Sebastian Huber Date: Thu, 19 May 2016 11:20:58 +0200 Subject: score: Add per scheduler instance maximum priority The priority values are only valid within a scheduler instance. Thus, the maximum priority value must be defined per scheduler instance. The first scheduler instance defines PRIORITY_MAXIMUM. This implies that RTEMS_MAXIMUM_PRIORITY and POSIX_SCHEDULER_MAXIMUM_PRIORITY are only valid for threads of the first scheduler instance. Further API/implementation changes are necessary to fix this. Update #2556. --- cpukit/sapi/include/confdefs.h | 13 +------------ 1 file changed, 1 insertion(+), 12 deletions(-) (limited to 'cpukit/sapi/include/confdefs.h') diff --git a/cpukit/sapi/include/confdefs.h b/cpukit/sapi/include/confdefs.h index b7c2f44de7..95f29fdfb9 100644 --- a/cpukit/sapi/include/confdefs.h +++ b/cpukit/sapi/include/confdefs.h @@ -883,6 +883,7 @@ extern rtems_initialization_tasks_table Initialization_tasks[]; CONFIGURE_MAXIMUM_PRIORITY + 1 \ ) + /** Configure the controls for this scheduler instance */ #define CONFIGURE_SCHEDULER_CONTROLS \ RTEMS_SCHEDULER_CONTROL_PRIORITY_AFFINITY_SMP( \ dflt, \ @@ -3349,18 +3350,6 @@ extern rtems_initialization_tasks_table Initialization_tasks[]; uint32_t rtems_minimum_stack_size = CONFIGURE_MINIMUM_TASK_STACK_SIZE; - /** - * This variable specifies the maximum priority value that - * a task may have. This must be a power of 2 between 4 - * and 256 and is specified in terms of Classic API - * priority values. - * - * NOTE: This is left as a simple uint8_t so it can be externed as - * needed without requring being high enough logical to - * include the full configuration table. - */ - uint8_t rtems_maximum_priority = CONFIGURE_MAXIMUM_PRIORITY; - /** * This is the primary Configuration Table for this application. */ -- cgit v1.2.3