diff options
author | Glenn Elliott <gelliott@cs.unc.edu> | 2012-12-12 14:45:17 -0500 |
---|---|---|
committer | Glenn Elliott <gelliott@cs.unc.edu> | 2012-12-12 14:46:15 -0500 |
commit | 9207c7f874e7754391fdf184187fc763455466c5 (patch) | |
tree | 6294bb80fa85c37d780266cadb624d9054e5e915 /include/litmus/sched_plugin.h | |
parent | c8483ef0959672310bf4ebb72e1a308b00543f74 (diff) |
Cluster assignment of nv klmirqd threads.
Diffstat (limited to 'include/litmus/sched_plugin.h')
-rw-r--r-- | include/litmus/sched_plugin.h | 8 |
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) | ||
106 | typedef 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 | ||