diff options
author | jhb <jhb@FreeBSD.org> | 2011-01-11 22:13:19 +0000 |
---|---|---|
committer | jhb <jhb@FreeBSD.org> | 2011-01-11 22:13:19 +0000 |
commit | 624ce4a8a0707a5354fc77837fe5697f9bf8b07c (patch) | |
tree | bb4473118731909873ef8d90797f5d2edc18f77b | |
parent | a001bebbff6858c0a8d587fddffcdc5b374946be (diff) | |
download | FreeBSD-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
-rw-r--r-- | sys/kern/sched_ule.c | 4 |
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. |