From 30621e142d24b9ae2d7578a804dd97f0196bb6da Mon Sep 17 00:00:00 2001 From: David Xu Date: Wed, 19 Feb 2003 09:59:12 +0000 Subject: [PATCH] M_WAITOK and remove an useless comment. --- sys/kern/kern_kse.c | 3 +-- sys/kern/kern_thread.c | 3 +-- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/sys/kern/kern_kse.c b/sys/kern/kern_kse.c index 55b0f24aa833..c7b88432c175 100644 --- a/sys/kern/kern_kse.c +++ b/sys/kern/kern_kse.c @@ -314,7 +314,7 @@ upcall_alloc(void) { struct kse_upcall *ku; - ku = uma_zalloc(upcall_zone, 0); + ku = uma_zalloc(upcall_zone, M_WAITOK); bzero(ku, sizeof(*ku)); return (ku); } @@ -1136,7 +1136,6 @@ thread_update_sys_ticks(struct thread *td) return (0); addr = (caddr_t)&td->td_mailbox->tm_sticks; sticks = fuword(addr); - /* XXXKSE use XCHG instead */ sticks += td->td_usticks; td->td_usticks = 0; if (suword(addr, sticks)) { diff --git a/sys/kern/kern_thread.c b/sys/kern/kern_thread.c index 55b0f24aa833..c7b88432c175 100644 --- a/sys/kern/kern_thread.c +++ b/sys/kern/kern_thread.c @@ -314,7 +314,7 @@ upcall_alloc(void) { struct kse_upcall *ku; - ku = uma_zalloc(upcall_zone, 0); + ku = uma_zalloc(upcall_zone, M_WAITOK); bzero(ku, sizeof(*ku)); return (ku); } @@ -1136,7 +1136,6 @@ thread_update_sys_ticks(struct thread *td) return (0); addr = (caddr_t)&td->td_mailbox->tm_sticks; sticks = fuword(addr); - /* XXXKSE use XCHG instead */ sticks += td->td_usticks; td->td_usticks = 0; if (suword(addr, sticks)) {