aboutsummaryrefslogtreecommitdiffstats
path: root/include/litmus/sched_plugin.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/litmus/sched_plugin.h')
-rw-r--r--include/litmus/sched_plugin.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/include/litmus/sched_plugin.h b/include/litmus/sched_plugin.h
index 6e7cabdddae8..ae11e3ac9266 100644
--- a/include/litmus/sched_plugin.h
+++ b/include/litmus/sched_plugin.h
@@ -58,6 +58,7 @@ typedef void (*task_exit_t) (struct task_struct *);
58typedef long (*allocate_lock_t) (struct litmus_lock **lock, int type, 58typedef long (*allocate_lock_t) (struct litmus_lock **lock, int type,
59 void* __user config); 59 void* __user config);
60 60
61typedef raw_spinlock_t* (*get_dgl_spinlock_t) (struct task_struct *t);
61 62
62/********************* sys call backends ********************/ 63/********************* sys call backends ********************/
63/* This function causes the caller to sleep until the next release */ 64/* This function causes the caller to sleep until the next release */
@@ -97,6 +98,10 @@ struct sched_plugin {
97 /* locking protocols */ 98 /* locking protocols */
98 allocate_lock_t allocate_lock; 99 allocate_lock_t allocate_lock;
99#endif 100#endif
101
102#ifdef CONFIG_LITMUS_DGL_SUPPORT
103 get_dgl_spinlock_t get_dgl_spinlock;
104#endif
100} __attribute__ ((__aligned__(SMP_CACHE_BYTES))); 105} __attribute__ ((__aligned__(SMP_CACHE_BYTES)));
101 106
102 107