aboutsummaryrefslogtreecommitdiffstats
path: root/litmus/sched_gsn_edf.c
diff options
context:
space:
mode:
Diffstat (limited to 'litmus/sched_gsn_edf.c')
-rw-r--r--litmus/sched_gsn_edf.c10
1 files changed, 9 insertions, 1 deletions
diff --git a/litmus/sched_gsn_edf.c b/litmus/sched_gsn_edf.c
index f27c104ea027..1b5d8d73dc16 100644
--- a/litmus/sched_gsn_edf.c
+++ b/litmus/sched_gsn_edf.c
@@ -1835,7 +1835,12 @@ UNSUPPORTED_AFF_OBS:
1835#endif 1835#endif
1836 1836
1837 1837
1838 1838#if defined(CONFIG_LITMUS_NVIDIA) && defined(CONFIG_LITMUS_SOFTIRQD)
1839static int gsnedf_map_gpu_to_cpu(int gpu, int num_gpus)
1840{
1841 return 0; // CPU_0 is default in all cases.
1842}
1843#endif
1839 1844
1840 1845
1841static long gsnedf_activate_plugin(void) 1846static long gsnedf_activate_plugin(void)
@@ -1918,6 +1923,9 @@ static struct sched_plugin gsn_edf_plugin __cacheline_aligned_in_smp = {
1918 .change_prio_pai_tasklet = gsnedf_change_prio_pai_tasklet, 1923 .change_prio_pai_tasklet = gsnedf_change_prio_pai_tasklet,
1919 .run_tasklets = gsnedf_run_tasklets, 1924 .run_tasklets = gsnedf_run_tasklets,
1920#endif 1925#endif
1926#if defined(CONFIG_LITMUS_NVIDIA) && defined(CONFIG_LITMUS_SOFTIRQD)
1927 .map_gpu_to_cpu = gsnedf_map_gpu_to_cpu,
1928#endif
1921}; 1929};
1922 1930
1923 1931