diff options
author | John Baldwin <jhb@FreeBSD.org> | 2004-09-22 15:24:33 +0000 |
---|---|---|
committer | John Baldwin <jhb@FreeBSD.org> | 2004-09-22 15:24:33 +0000 |
commit | 7eaec467d8517d7cbdc0f19ed9b22885d6490bab (patch) | |
tree | 868f409e596498f500847bbc4ec4cc18c58356b2 /sys/kern/kern_kse.c | |
parent | abb3768b5c8670d2ff2c3f1eedb772efa9985383 (diff) | |
download | src-7eaec467d8517d7cbdc0f19ed9b22885d6490bab.tar.gz src-7eaec467d8517d7cbdc0f19ed9b22885d6490bab.zip |
Various small style fixes.
Notes
Notes:
svn path=/head/; revision=135573
Diffstat (limited to 'sys/kern/kern_kse.c')
-rw-r--r-- | sys/kern/kern_kse.c | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/sys/kern/kern_kse.c b/sys/kern/kern_kse.c index 4a89665b7b96..3ecebe9e4395 100644 --- a/sys/kern/kern_kse.c +++ b/sys/kern/kern_kse.c @@ -111,10 +111,10 @@ void upcall_remove(struct thread *td) { - if (td->td_upcall) { + if (td->td_upcall != NULL) { td->td_upcall->ku_owner = NULL; upcall_unlink(td->td_upcall); - td->td_upcall = 0; + td->td_upcall = NULL; } } @@ -661,7 +661,7 @@ kse_create(struct thread *td, struct kse_create_args *uap) /* * If we are the first time, and a normal thread, - * then trnasfer all the signals back to the 'process'. + * then transfer all the signals back to the 'process'. * SA threading will make a special thread to handle them. */ if (first && sa) { @@ -672,14 +672,14 @@ kse_create(struct thread *td, struct kse_create_args *uap) } /* - * Make the new upcall available to the ksegrp,. - * It may or may not use it, but its available. + * Make the new upcall available to the ksegrp. + * It may or may not use it, but it's available. */ mtx_lock_spin(&sched_lock); PROC_UNLOCK(p); upcall_link(newku, newkg); if (mbx.km_quantum) - newkg->kg_upquantum = max(1, mbx.km_quantum/tick); + newkg->kg_upquantum = max(1, mbx.km_quantum / tick); /* * Each upcall structure has an owner thread, find which @@ -1312,7 +1312,7 @@ thread_userret(struct thread *td, struct trapframe *frame) if (td->td_pflags & TDP_UPCALLING) { uts_crit = 0; - kg->kg_nextupcall = ticks+kg->kg_upquantum; + kg->kg_nextupcall = ticks + kg->kg_upquantum; /* * There is no more work to do and we are going to ride * this thread up to userland as an upcall. |