From 95bee4c3654ac5ca0c627c80a12f92a6da31f761 Mon Sep 17 00:00:00 2001 From: David Xu Date: Sat, 19 Apr 2003 06:16:04 +0000 Subject: [PATCH] Test next upcall time correctly. --- sys/kern/kern_kse.c | 2 +- sys/kern/kern_thread.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/sys/kern/kern_kse.c b/sys/kern/kern_kse.c index 02769b1718fd..9d834b5d6e7a 100644 --- a/sys/kern/kern_kse.c +++ b/sys/kern/kern_kse.c @@ -1641,7 +1641,7 @@ thread_userret(struct thread *td, struct trapframe *frame) if ((td->td_flags & TDF_NEEDSIGCHK) == 0 && (kg->kg_completed == NULL) && (ku->ku_flags & KUF_DOUPCALL) == 0 && - (kg->kg_upquantum && ticks >= kg->kg_nextupcall)) { + (kg->kg_upquantum && ticks < kg->kg_nextupcall)) { mtx_unlock_spin(&sched_lock); thread_update_usr_ticks(td, 0); nanotime(&ts); diff --git a/sys/kern/kern_thread.c b/sys/kern/kern_thread.c index 02769b1718fd..9d834b5d6e7a 100644 --- a/sys/kern/kern_thread.c +++ b/sys/kern/kern_thread.c @@ -1641,7 +1641,7 @@ thread_userret(struct thread *td, struct trapframe *frame) if ((td->td_flags & TDF_NEEDSIGCHK) == 0 && (kg->kg_completed == NULL) && (ku->ku_flags & KUF_DOUPCALL) == 0 && - (kg->kg_upquantum && ticks >= kg->kg_nextupcall)) { + (kg->kg_upquantum && ticks < kg->kg_nextupcall)) { mtx_unlock_spin(&sched_lock); thread_update_usr_ticks(td, 0); nanotime(&ts);