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.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/include/litmus/sched_plugin.h b/include/litmus/sched_plugin.h
index a13d1a2992fe..cfa218504d75 100644
--- a/include/litmus/sched_plugin.h
+++ b/include/litmus/sched_plugin.h
@@ -102,6 +102,10 @@ typedef int (*__higher_prio_t)(struct task_struct* a, comparison_mode_t a_mod,
102 struct task_struct* b, comparison_mode_t b_mod); 102 struct task_struct* b, comparison_mode_t b_mod);
103#endif 103#endif
104 104
105#if defined(CONFIG_LITMUS_NVIDIA) && defined(CONFIG_LITMUS_SOFTIRQD)
106typedef int (*default_cpu_for_gpu_t)(int gpu, int num_gpus);
107#endif
108
105 109
106/********************* sys call backends ********************/ 110/********************* sys call backends ********************/
107/* This function causes the caller to sleep until the next release */ 111/* This function causes the caller to sleep until the next release */
@@ -165,6 +169,10 @@ struct sched_plugin {
165 change_prio_pai_tasklet_t change_prio_pai_tasklet; 169 change_prio_pai_tasklet_t change_prio_pai_tasklet;
166 run_tasklets_t run_tasklets; 170 run_tasklets_t run_tasklets;
167#endif 171#endif
172
173#if defined(CONFIG_LITMUS_NVIDIA) && defined(CONFIG_LITMUS_SOFTIRQD)
174 default_cpu_for_gpu_t map_gpu_to_cpu;
175#endif
168} __attribute__ ((__aligned__(SMP_CACHE_BYTES))); 176} __attribute__ ((__aligned__(SMP_CACHE_BYTES)));
169 177
170 178