diff options
author | jeff <jeff@FreeBSD.org> | 2007-02-08 01:52:25 +0000 |
---|---|---|
committer | jeff <jeff@FreeBSD.org> | 2007-02-08 01:52:25 +0000 |
commit | 7038c5de35a55914aa33a5549087ae49459e9851 (patch) | |
tree | 5b2024b3921a74fef4f84c62d6f9acf1a4db0712 /sys/sys/runq.h | |
parent | 35c8706625e7720b1707dfc5d8df700ac0503a57 (diff) | |
download | FreeBSD-src-7038c5de35a55914aa33a5549087ae49459e9851.zip FreeBSD-src-7038c5de35a55914aa33a5549087ae49459e9851.tar.gz |
- Change types for necent runq additions to u_char rather than int.
- Fix these types in ULE as well. This fixes bugs in priority index
calculations in certain edge cases. (int)-1 % 64 != (uint)-1 % 64.
Reported by: kkenn using pho's stress2.
Diffstat (limited to 'sys/sys/runq.h')
-rw-r--r-- | sys/sys/runq.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/sys/sys/runq.h b/sys/sys/runq.h index 6e7e5d9..4b14e2d 100644 --- a/sys/sys/runq.h +++ b/sys/sys/runq.h @@ -63,12 +63,12 @@ struct runq { }; void runq_add(struct runq *, struct td_sched *, int); -void runq_add_pri(struct runq *, struct td_sched *, int, int); +void runq_add_pri(struct runq *, struct td_sched *, u_char, int); int runq_check(struct runq *); struct td_sched *runq_choose(struct runq *); -struct td_sched *runq_choose_from(struct runq *, int); +struct td_sched *runq_choose_from(struct runq *, u_char); void runq_init(struct runq *); void runq_remove(struct runq *, struct td_sched *); -void runq_remove_idx(struct runq *, struct td_sched *, int *); +void runq_remove_idx(struct runq *, struct td_sched *, u_char *); #endif |