diff options
Diffstat (limited to 'include/litmus/sched_plugin.h')
-rw-r--r-- | include/litmus/sched_plugin.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/include/litmus/sched_plugin.h b/include/litmus/sched_plugin.h index 78004381a6cc..d0e7d74bb45e 100644 --- a/include/litmus/sched_plugin.h +++ b/include/litmus/sched_plugin.h | |||
@@ -58,10 +58,12 @@ typedef void (*task_block_t) (struct task_struct *task); | |||
58 | */ | 58 | */ |
59 | typedef void (*task_exit_t) (struct task_struct *); | 59 | typedef void (*task_exit_t) (struct task_struct *); |
60 | 60 | ||
61 | #ifdef CONFIG_LITMUS_LOCKING | ||
61 | /* Called when the current task attempts to create a new lock of a given | 62 | /* Called when the current task attempts to create a new lock of a given |
62 | * protocol type. */ | 63 | * protocol type. */ |
63 | typedef long (*allocate_lock_t) (struct litmus_lock **lock, int type, | 64 | typedef long (*allocate_lock_t) (struct litmus_lock **lock, int type, |
64 | void* __user config); | 65 | void* __user config); |
66 | #endif | ||
65 | 67 | ||
66 | struct affinity_observer; | 68 | struct affinity_observer; |
67 | typedef long (*allocate_affinity_observer_t) ( | 69 | typedef long (*allocate_affinity_observer_t) ( |