aboutsummaryrefslogtreecommitdiffstats
path: root/include/litmus/sched_plugin.h
diff options
context:
space:
mode:
authorBjoern B. Brandenburg <bbb@cs.unc.edu>2008-07-01 10:45:20 -0400
committerBjoern B. Brandenburg <bbb@cs.unc.edu>2008-07-01 10:45:20 -0400
commit9b070bc6b676c62d4988da8699f0a731e733b318 (patch)
treea672d1b726cdce756f9a67786f0262cca776d3fe /include/litmus/sched_plugin.h
parent0291b7547359c8e01ca1146ca8f2d5f321338ff8 (diff)
make inclusion of SRP support optional2008.1
we can disable it to improve performance when it is not needed
Diffstat (limited to 'include/litmus/sched_plugin.h')
-rw-r--r--include/litmus/sched_plugin.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/include/litmus/sched_plugin.h b/include/litmus/sched_plugin.h
index c26af80da8..aba75222fc 100644
--- a/include/litmus/sched_plugin.h
+++ b/include/litmus/sched_plugin.h
@@ -87,7 +87,9 @@ struct sched_plugin {
87 struct list_head list; 87 struct list_head list;
88 /* basic info */ 88 /* basic info */
89 char *plugin_name; 89 char *plugin_name;
90#ifdef CONFIG_SRP
90 unsigned int srp_active; 91 unsigned int srp_active;
92#endif
91 93
92 /* scheduler invocation */ 94 /* scheduler invocation */
93 scheduler_tick_t tick; 95 scheduler_tick_t tick;
@@ -124,7 +126,11 @@ int print_sched_plugins(char* buf, int max);
124 126
125static inline int srp_active(void) 127static inline int srp_active(void)
126{ 128{
129#ifdef CONFIG_SRP
127 return litmus->srp_active; 130 return litmus->srp_active;
131#else
132 return 0;
133#endif
128} 134}
129static inline int fmlp_active(void) 135static inline int fmlp_active(void)
130{ 136{