aboutsummaryrefslogtreecommitdiffstats
path: root/litmus/sched_plugin.c
diff options
context:
space:
mode:
authorGlenn Elliott <gelliott@cs.unc.edu>2012-12-12 16:38:55 -0500
committerGlenn Elliott <gelliott@cs.unc.edu>2012-12-12 16:38:55 -0500
commit2ccc2c4cc981a68e703082e6e32f5483ad87b61c (patch)
tree8cc9c32d0909f6543080d3f125df0084ed9f6b82 /litmus/sched_plugin.c
parent9207c7f874e7754391fdf184187fc763455466c5 (diff)
Use num_online_gpus()
Note that num_online_gpus() merely reports the staticly configured maximum number of available GPUs. Will make dynamic in the future.
Diffstat (limited to 'litmus/sched_plugin.c')
-rw-r--r--litmus/sched_plugin.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/litmus/sched_plugin.c b/litmus/sched_plugin.c
index ea89f5fedcab..76ff892122aa 100644
--- a/litmus/sched_plugin.c
+++ b/litmus/sched_plugin.c
@@ -223,7 +223,7 @@ static long litmus_dummy_allocate_aff_obs(struct affinity_observer **aff_obs,
223#endif 223#endif
224 224
225#if defined(CONFIG_LITMUS_NVIDIA) && defined(CONFIG_LITMUS_SOFTIRQD) 225#if defined(CONFIG_LITMUS_NVIDIA) && defined(CONFIG_LITMUS_SOFTIRQD)
226static int litmus_dummy_map_gpu_to_cpu(int gpu, int num_gpus) 226static int litmus_dummy_map_gpu_to_cpu(int gpu)
227{ 227{
228 return 0; 228 return 0;
229} 229}