diff options
author | davidxu <davidxu@FreeBSD.org> | 2003-02-19 09:59:12 +0000 |
---|---|---|
committer | davidxu <davidxu@FreeBSD.org> | 2003-02-19 09:59:12 +0000 |
commit | dfa9741d3bc1093c4d054b05f18b9072db2ffdb8 (patch) | |
tree | b689ac802afda7d1ed70939af3ac229d049f8855 /sys/kern/kern_thread.c | |
parent | 4755bfb6cec23073d70386b9d148349d36c48e89 (diff) | |
download | FreeBSD-src-dfa9741d3bc1093c4d054b05f18b9072db2ffdb8.zip FreeBSD-src-dfa9741d3bc1093c4d054b05f18b9072db2ffdb8.tar.gz |
M_WAITOK and remove an useless comment.
Diffstat (limited to 'sys/kern/kern_thread.c')
-rw-r--r-- | sys/kern/kern_thread.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/sys/kern/kern_thread.c b/sys/kern/kern_thread.c index 55b0f24..c7b8843 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)) { |