aboutsummaryrefslogtreecommitdiffstats
path: root/include/litmus/gpu_affinity.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/litmus/gpu_affinity.h')
-rw-r--r--include/litmus/gpu_affinity.h7
1 files changed, 2 insertions, 5 deletions
diff --git a/include/litmus/gpu_affinity.h b/include/litmus/gpu_affinity.h
index d4db2003ad86..6b3fb8b28745 100644
--- a/include/litmus/gpu_affinity.h
+++ b/include/litmus/gpu_affinity.h
@@ -43,10 +43,7 @@ static inline lt_t get_gpu_estimate(struct task_struct* t, gpu_migration_dist_t
43 val = _fp_to_integer(t->rt_param.gpu_migration_est[i].est); 43 val = _fp_to_integer(t->rt_param.gpu_migration_est[i].est);
44 } 44 }
45 45
46 // minimum value is 1 (val is 0 if we haven't run with local affinity yet) 46 return ((val > 0) ? val : dist+1);
47 // TODO: pick a better default min-value. 1 is too small. perhaps
48 // task execution time?
49 return ((val > 0) ? val : 1);
50} 47}
51 48
52#endif \ No newline at end of file 49#endif