From e49947621113a0b6f775b1ffa7105299b59b40d6 Mon Sep 17 00:00:00 2001 From: Samuel Thibault Date: Sun, 4 Nov 2018 16:22:17 +0100 Subject: Fix using all dynamic priorities 6a2342010811 ("Increase number of priorities") increased NRQS but didn't increase PRI_SHIFT to extend the use of the additional queues by the scheduler. This does it. While at it, extend to NRQS to 64, the double of the original 32, to keep all values coherent. * i386/i386/sched_param.h (PRI_SHIFT): Set from 18 to 17. * kern/sched.h (PRI_SHIFT): Set from 18 to 17. (NRQS): Set to 64. --- kern/sched.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'kern/sched.h') diff --git a/kern/sched.h b/kern/sched.h index f82f9f56..c401f0f5 100644 --- a/kern/sched.h +++ b/kern/sched.h @@ -47,10 +47,10 @@ #if STAT_TIME /* - * Statistical timing uses microseconds as timer units. 18 bit shift + * Statistical timing uses microseconds as timer units. 17 bit shift * yields priorities. PRI_SHIFT_2 isn't needed. */ -#define PRI_SHIFT 18 +#define PRI_SHIFT 17 #else /* STAT_TIME */ @@ -60,7 +60,7 @@ #include #endif /* STAT_TIME */ -#define NRQS 50 /* 50 run queues per cpu */ +#define NRQS 64 /* 64 run queues per cpu */ struct run_queue { queue_head_t runq[NRQS]; /* one for each priority */ -- cgit v1.2.3