M_WAITOK and remove an useless comment.

This commit is contained in:
David Xu 2003-02-19 09:59:12 +00:00
parent eba43df47a
commit 30621e142d
2 changed files with 2 additions and 4 deletions

View File

@ -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)) {

View File

@ -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)) {