From: telleriam Date: Fri, 10 Aug 2007 15:09:55 +0000 (+0000) Subject: Change to allow to define FRSH priorities based on fosa_get_priority_max() X-Git-Url: https://rtime.felk.cvut.cz/gitweb/frescor/frsh-include.git/commitdiff_plain/d03c57b61b2bd1523c18ea741b9b4feb0d30b847?ds=sidebyside Change to allow to define FRSH priorities based on fosa_get_priority_max() and fosa_get_priority_min() git-svn-id: http://www.frescor.org/private/svn/frescor/frsh/trunk/include@667 35b4ef3e-fd22-0410-ab77-dab3279adceb --- diff --git a/frsh_configuration_parameters.h b/frsh_configuration_parameters.h index bc4634c..936d355 100644 --- a/frsh_configuration_parameters.h +++ b/frsh_configuration_parameters.h @@ -187,7 +187,7 @@ * thread, and it should be at least 1 level below the maximum of the * system **/ -#define FRSH_SCHEDULER_PRIORITY 29 //104 +#define FRSH_SCHEDULER_PRIORITY (fosa_get_priority_max() - FOSA_ADS_SCHEDULER_PRIO_DIFF) /** * Real-time signal number reserved for the application scheduler to @@ -208,7 +208,7 @@ * The lowest priority that can be assigned to an application thread, * it should be at least 1 level above the minimum of the system **/ -#define FRSH_LOWEST_THREAD_PRIORITY 5 +#define FRSH_LOWEST_THREAD_PRIORITY ( fosa_get_priority_min() + 4) /** * Each call to the functions that negotiate or renegotiate a contract @@ -218,7 +218,7 @@ * following symbol represents the maximum number of requests that can * be simultaneously queued. **/ -#define FRSH_MAX_N_SERVICE_JOBS FRSH_MAX_N_VRES * 2 +#define FRSH_MAX_N_SERVICE_JOBS (FRSH_MAX_N_VRES * 2) /**