aboutsummaryrefslogtreecommitdiffstats
path: root/litmus/sched_plugin.c
diff options
context:
space:
mode:
Diffstat (limited to 'litmus/sched_plugin.c')
-rw-r--r--litmus/sched_plugin.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/litmus/sched_plugin.c b/litmus/sched_plugin.c
index c4747e0ef2ab..592489629105 100644
--- a/litmus/sched_plugin.c
+++ b/litmus/sched_plugin.c
@@ -111,6 +111,12 @@ static long litmus_dummy_deactivate_plugin(void)
111 return 0; 111 return 0;
112} 112}
113 113
114static long litmus_dummy_get_domain_proc_info(struct domain_proc_info **d)
115{
116 *d = NULL;
117 return 0;
118}
119
114#ifdef CONFIG_LITMUS_LOCKING 120#ifdef CONFIG_LITMUS_LOCKING
115 121
116static long litmus_dummy_allocate_lock(struct litmus_lock **lock, int type, 122static long litmus_dummy_allocate_lock(struct litmus_lock **lock, int type,
@@ -137,6 +143,7 @@ struct sched_plugin linux_sched_plugin = {
137 .finish_switch = litmus_dummy_finish_switch, 143 .finish_switch = litmus_dummy_finish_switch,
138 .activate_plugin = litmus_dummy_activate_plugin, 144 .activate_plugin = litmus_dummy_activate_plugin,
139 .deactivate_plugin = litmus_dummy_deactivate_plugin, 145 .deactivate_plugin = litmus_dummy_deactivate_plugin,
146 .get_domain_proc_info = litmus_dummy_get_domain_proc_info,
140#ifdef CONFIG_LITMUS_LOCKING 147#ifdef CONFIG_LITMUS_LOCKING
141 .allocate_lock = litmus_dummy_allocate_lock, 148 .allocate_lock = litmus_dummy_allocate_lock,
142#endif 149#endif
@@ -175,6 +182,7 @@ int register_sched_plugin(struct sched_plugin* plugin)
175 CHECK(complete_job); 182 CHECK(complete_job);
176 CHECK(activate_plugin); 183 CHECK(activate_plugin);
177 CHECK(deactivate_plugin); 184 CHECK(deactivate_plugin);
185 CHECK(get_domain_proc_info);
178#ifdef CONFIG_LITMUS_LOCKING 186#ifdef CONFIG_LITMUS_LOCKING
179 CHECK(allocate_lock); 187 CHECK(allocate_lock);
180#endif 188#endif