From 3cbe75a41452b075c24827215897c58a2f571650 Mon Sep 17 00:00:00 2001 From: Jake Burkholder Date: Sat, 10 Feb 2001 20:33:35 +0000 Subject: [PATCH] Clear the reschedule flag after finding it set in userret(). This used to be in cpu_switch(), but I don't see any difference between doing it here. --- sys/alpha/alpha/trap.c | 1 + sys/amd64/amd64/trap.c | 1 + sys/i386/i386/trap.c | 1 + sys/kern/subr_trap.c | 1 + 4 files changed, 4 insertions(+) diff --git a/sys/alpha/alpha/trap.c b/sys/alpha/alpha/trap.c index 523c79c15e5b..7166368c8d76 100644 --- a/sys/alpha/alpha/trap.c +++ b/sys/alpha/alpha/trap.c @@ -118,6 +118,7 @@ userret(p, frame, oticks) * before we switch()'ed, we might not be on the queue * indicated by our priority. */ + clear_resched(); DROP_GIANT_NOSWITCH(); setrunqueue(p); p->p_stats->p_ru.ru_nivcsw++; diff --git a/sys/amd64/amd64/trap.c b/sys/amd64/amd64/trap.c index d34e4b1850f6..2ef2aa85ec4b 100644 --- a/sys/amd64/amd64/trap.c +++ b/sys/amd64/amd64/trap.c @@ -189,6 +189,7 @@ userret(p, frame, oticks) * mi_switch()'ed, we might not be on the queue indicated by * our priority. */ + clear_resched(); DROP_GIANT_NOSWITCH(); setrunqueue(p); p->p_stats->p_ru.ru_nivcsw++; diff --git a/sys/i386/i386/trap.c b/sys/i386/i386/trap.c index d34e4b1850f6..2ef2aa85ec4b 100644 --- a/sys/i386/i386/trap.c +++ b/sys/i386/i386/trap.c @@ -189,6 +189,7 @@ userret(p, frame, oticks) * mi_switch()'ed, we might not be on the queue indicated by * our priority. */ + clear_resched(); DROP_GIANT_NOSWITCH(); setrunqueue(p); p->p_stats->p_ru.ru_nivcsw++; diff --git a/sys/kern/subr_trap.c b/sys/kern/subr_trap.c index d34e4b1850f6..2ef2aa85ec4b 100644 --- a/sys/kern/subr_trap.c +++ b/sys/kern/subr_trap.c @@ -189,6 +189,7 @@ userret(p, frame, oticks) * mi_switch()'ed, we might not be on the queue indicated by * our priority. */ + clear_resched(); DROP_GIANT_NOSWITCH(); setrunqueue(p); p->p_stats->p_ru.ru_nivcsw++;