summaryrefslogtreecommitdiffstats
path: root/sys/kern/sched_ule.c
diff options
context:
space:
mode:
authorjhb <jhb@FreeBSD.org>2011-01-11 22:13:19 +0000
committerjhb <jhb@FreeBSD.org>2011-01-11 22:13:19 +0000
commit624ce4a8a0707a5354fc77837fe5697f9bf8b07c (patch)
treebb4473118731909873ef8d90797f5d2edc18f77b /sys/kern/sched_ule.c
parenta001bebbff6858c0a8d587fddffcdc5b374946be (diff)
downloadFreeBSD-src-624ce4a8a0707a5354fc77837fe5697f9bf8b07c.zip
FreeBSD-src-624ce4a8a0707a5354fc77837fe5697f9bf8b07c.tar.gz
Always use PRI_BASE() when checking the base type of a thread's priority
class. MFC after: 2 weeks
Diffstat (limited to 'sys/kern/sched_ule.c')
-rw-r--r--sys/kern/sched_ule.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/kern/sched_ule.c b/sys/kern/sched_ule.c
index 0ebcc75..06bdb0b 100644
--- a/sys/kern/sched_ule.c
+++ b/sys/kern/sched_ule.c
@@ -1388,7 +1388,7 @@ sched_priority(struct thread *td)
int score;
int pri;
- if (td->td_pri_class != PRI_TIMESHARE)
+ if (PRI_BASE(td->td_pri_class) != PRI_TIMESHARE)
return;
/*
* If the score is interactive we place the thread in the realtime
@@ -2124,7 +2124,7 @@ sched_clock(struct thread *td)
ts = td->td_sched;
if (td->td_pri_class & PRI_FIFO_BIT)
return;
- if (td->td_pri_class == PRI_TIMESHARE) {
+ if (PRI_BASE(td->td_pri_class) == PRI_TIMESHARE) {
/*
* We used a tick; charge it to the thread so
* that we can compute our interactivity.
OpenPOWER on IntegriCloud