summaryrefslogtreecommitdiffstats
path: root/sys/kern/sched_ule.c
diff options
context:
space:
mode:
Diffstat (limited to 'sys/kern/sched_ule.c')
-rw-r--r--sys/kern/sched_ule.c8
1 files changed, 1 insertions, 7 deletions
diff --git a/sys/kern/sched_ule.c b/sys/kern/sched_ule.c
index 69f36cb..15f83e2 100644
--- a/sys/kern/sched_ule.c
+++ b/sys/kern/sched_ule.c
@@ -751,13 +751,7 @@ kseq_transfer(struct kseq *kseq, struct kse *ke, int class)
* some CPUs may idle. Too low and there will be excess migration
* and context swiches.
*/
- /*
- * XXX This ksg_transferable might work better if we were checking
- * against a global group load. As it is now, this prevents us from
- * transfering a thread from a group that is potentially bogged down
- * with non transferable load.
- */
- if (ksg->ksg_transferable > ksg->ksg_cpus && kseq_idle) {
+ if (ksg->ksg_load > (ksg->ksg_cpus * 2) && kseq_idle) {
/*
* Multiple cpus could find this bit simultaneously
* but the race shouldn't be terrible.
OpenPOWER on IntegriCloud