]> rtime.felk.cvut.cz Git - frescor/frsh-include.git/commitdiff
Change to allow to define FRSH priorities based on fosa_get_priority_max()
authortelleriam <telleriam@35b4ef3e-fd22-0410-ab77-dab3279adceb>
Fri, 10 Aug 2007 15:09:55 +0000 (15:09 +0000)
committertelleriam <telleriam@35b4ef3e-fd22-0410-ab77-dab3279adceb>
Fri, 10 Aug 2007 15:09:55 +0000 (15:09 +0000)
and fosa_get_priority_min()

git-svn-id: http://www.frescor.org/private/svn/frescor/frsh/trunk/include@667 35b4ef3e-fd22-0410-ab77-dab3279adceb

frsh_configuration_parameters.h

index bc4634cb556ec893f43944023cae0f89334b3744..936d3551403a1c43ef260a7ee60428aacb58d7c0 100644 (file)
  * 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
  * 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
  * 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)
 
 
 /**