aboutsummaryrefslogtreecommitdiff
path: root/sys/sys/runq.h
diff options
context:
space:
mode:
authorJeff Roberson <jeff@FreeBSD.org>2007-02-08 01:52:25 +0000
committerJeff Roberson <jeff@FreeBSD.org>2007-02-08 01:52:25 +0000
commited0e8f2fe9fe332d3d666236c083408a2658e08d (patch)
tree5b2024b3921a74fef4f84c62d6f9acf1a4db0712 /sys/sys/runq.h
parentc16a08dd67f674879f023b4e994181411145b61b (diff)
downloadsrc-ed0e8f2fe9fe332d3d666236c083408a2658e08d.tar.gz
src-ed0e8f2fe9fe332d3d666236c083408a2658e08d.zip
- 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.
Notes
Notes: svn path=/head/; revision=166557
Diffstat (limited to 'sys/sys/runq.h')
-rw-r--r--sys/sys/runq.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/sys/sys/runq.h b/sys/sys/runq.h
index 6e7e5d9c2fd6..4b14e2d42d0d 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