]> rtime.felk.cvut.cz Git - frescor/frsh-include.git/blobdiff - frsh_configuration_parameters.h
Fix type of number of power levels argument in
[frescor/frsh-include.git] / frsh_configuration_parameters.h
index 45a67a6826cfa9475f70a2d725e897a26482c612..817dad89df44189a5634eea16cd87891086c6de0 100644 (file)
@@ -69,6 +69,8 @@
 #define _FRSH_CONFIGURATION_PARAMETERS_H_
 
 #include <unistd.h>
+#include <limits.h>
+#include <frsh_cpp_macros.h>
 
 FRSH_CPP_BEGIN_DECLS
 
@@ -104,8 +106,11 @@ FRSH_CPP_BEGIN_DECLS
  **/
 #define FRSH_AUTOMATIC_PRIO_ASSIGN_ENABLE true
 
+#ifdef ENABLE_FRSH_DISTRIBUTED_MODULE
+#define FRSH_DISTRIBUTED_MODULE_SUPPORTED true
+#else
 #define FRSH_DISTRIBUTED_MODULE_SUPPORTED false
-
+#endif
 
 /** This defines 1 resource_id value for systems that have only one
     resource of a kind. **/
@@ -124,13 +129,11 @@ FRSH_CPP_BEGIN_DECLS
  **/
 
 /** Maximum number of accepted contracts (vres) **/
-#define FRSH_MAX_N_VRES                    100
-
+#define FRSH_MAX_N_VRES                    25
 
 /** Maximum number of threads that may be scheduled by the framework **/
 #define FRSH_MAX_N_THREADS                    25
 
-
 /**
  * Maximum number of critical sections that can be stored in a
  * contract parameters object
@@ -157,7 +160,6 @@ FRSH_CPP_BEGIN_DECLS
  **/
 #define FRSH_MAX_N_SYNCH_OBJECTS              5
 
-
 /** Maximum number of shared objects **/
 #define FRSH_MAX_N_SHARED_OBJECTS             100
 
@@ -320,16 +322,14 @@ int frsh_priority_map (unsigned long plevel);
 #define FRSH_MAX_N_NETWORK_IDS                1
 
 /**
- * Maximum number of vres that can be given in a vres list
- * to the group negotiation/cancellation primitive
+ * Maximum number of groups allocated at the same time
  **/
-#define FRSH_MAX_N_VRES_VALUES              10
+#define FRSH_MAX_N_GROUPS  3
 
 /**
- * Maximum number of contracts that can be given in a contracts list
- * to the group negotiation/cancellation primitive
+ * Maximum number of groups operations (neg, reneg, cancel) per group
  **/
-#define FRSH_MAX_N_CONTRACT_VALUES              10
+#define FRSH_MAX_GROUP_OPS  25
 
 /**
  * Default overheads of shared object protection mechanisms
@@ -352,6 +352,16 @@ int frsh_priority_map (unsigned long plevel);
 #define FRSH_SO_NANOS_PER_KB            0
 
 
+/* Default memory pool's size in Kbytes */
+#define FRSH_DYNAMIC_MEMORY_POOL_SIZE 6670
+
+/**
+ * Maximum synchronized workload period number.  After this value any
+ * increments will be set to zero.
+ **/
+#define FRSH_MAX_SYNCHRONIZED_PERIOD_NUMBER LONG_MAX
+
+
 /*@}*/
 
 /*@}*/