summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--sys/kern/kern_switch.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/kern/kern_switch.c b/sys/kern/kern_switch.c
index b7cb0b6..48aa029 100644
--- a/sys/kern/kern_switch.c
+++ b/sys/kern/kern_switch.c
@@ -394,7 +394,7 @@ runq_choose_fuzz(struct runq *rq, int fuzz)
td2 = td = TAILQ_FIRST(rqh);
while (count-- && td2) {
- if (td->td_lastcpu == cpu) {
+ if (td2->td_lastcpu == cpu) {
td = td2;
break;
}
OpenPOWER on IntegriCloud