浏览代码

component_fifo: drop now-useless test

Samuel Thibault 5 年之前
父节点
当前提交
84f82b2a11
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      src/sched_policies/component_fifo.c

+ 1 - 1
src/sched_policies/component_fifo.c

@@ -107,7 +107,7 @@ static int fifo_push_local_task(struct starpu_sched_component * component, struc
 		else
 			exp_len = fifo->exp_len;
 
-		if ((data->ntasks_threshold != 0 && fifo->ntasks >= data->ntasks_threshold) || (data->exp_len_threshold != 0.0 && exp_len >= data->exp_len_threshold))
+		if (data->exp_len_threshold != 0.0 && exp_len >= data->exp_len_threshold)
 		{
 			static int warned;
 			if(data->exp_len_threshold != 0.0 && task->predicted > data->exp_len_threshold && !warned)