From 3b723460a785c35636cee8e672906d98215e5006 Mon Sep 17 00:00:00 2001 From: Chris Wilson Date: Tue, 9 May 2017 16:35:22 +0100 Subject: wsim: qd throttling now works independently of balancer->get_qd Since we are tracking the request depth outside of the balancer, we can apply the qd thottle unconditionally. Signed-off-by: Chris Wilson --- benchmarks/gem_wsim.c | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) (limited to 'benchmarks') diff --git a/benchmarks/gem_wsim.c b/benchmarks/gem_wsim.c index 6cc3592d..4593abfb 100644 --- a/benchmarks/gem_wsim.c +++ b/benchmarks/gem_wsim.c @@ -1158,12 +1158,6 @@ run_workload(unsigned int id, struct workload *wrk, w->eb.batch_start_offset = offset; } - /* If workload want qd throttling when qd is not - * available approximate with normal throttling. */ - if (qd_throttle > 0 && throttle < 0 && - !(balancer && balancer->get_qd)) - throttle = qd_throttle; - if (throttle > 0) w_sync_to(wrk, w, i - throttle); @@ -1185,7 +1179,7 @@ run_workload(unsigned int id, struct workload *wrk, if (w->wait) gem_sync(fd, w->obj[0].handle); - if (qd_throttle > 0 && balancer) { + if (qd_throttle > 0) { while (wrk->nrequest[engine] > qd_throttle) { struct w_step *s; -- cgit v1.2.3