summaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
author Oliver Stöneberg <oliverst@online.de>2015-01-07 14:28:50 +0100
committer Oliver Stöneberg <oliverst@online.de>2015-01-07 14:28:50 +0100
commit4a6ead87e7889c5b43534a5bfd9e03998a3ae5f3 (patch)
tree1d1a909d4daa7ea8c639700c7d5915546da8f1c5
parent53ab5084a468ffe9b029c84861eb2a69ec58199d (diff)
osd_work: removed maximum thread limit for WORK_QUEUE_FLAG_HIGH_FREQ queue on Windows (nw)
with the new SPIN_LOOP_TIME value it now scales
-rw-r--r--src/osd/modules/sync/work_osd.c8
1 files changed, 0 insertions, 8 deletions
diff --git a/src/osd/modules/sync/work_osd.c b/src/osd/modules/sync/work_osd.c
index 5241f799764..8220d50cb23 100644
--- a/src/osd/modules/sync/work_osd.c
+++ b/src/osd/modules/sync/work_osd.c
@@ -250,14 +250,6 @@ osd_work_queue *osd_work_queue_alloc(int flags)
if (osdworkqueuemaxthreads != NULL && sscanf(osdworkqueuemaxthreads, "%d", &osdthreadnum) == 1 && threadnum > osdthreadnum)
threadnum = osdthreadnum;
- // TODO: also enable this for non-Windows platforms?
- // TODO: it appears lowering SPIN_LOOP_TIME value fixed the scaling issues - needs a test case with a higher workload than n64dd
-#if defined(OSD_WINDOWS)
- // multi-queues with high frequency items should top out at 3 for now
- // since we have scaling problems above that
- if ((flags & WORK_QUEUE_FLAG_HIGH_FREQ) && threadnum > 1)
- threadnum = MIN(threadnum - 1, 3);
-#endif
// clamp to the maximum
queue->threads = MIN(threadnum, WORK_MAX_THREADS);