]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
Remove all the checks on curthread != NULL with the exception of some MD
authorAttilio Rao <attilio@FreeBSD.org>
Thu, 13 Sep 2012 22:26:22 +0000 (22:26 +0000)
committerAttilio Rao <attilio@FreeBSD.org>
Thu, 13 Sep 2012 22:26:22 +0000 (22:26 +0000)
commit0a15e5d30d967e41e17269931c16d8d074954995
tree98cf642eabc284875d15c5dcbebba86797df11e9
parent60149b5cce13419bafa045e91925869b79440ea1
Remove all the checks on curthread != NULL with the exception of some MD
trap checks (eg. printtrap()).

Generally this check is not needed anymore, as there is not a legitimate
case where curthread != NULL, after pcpu 0 area has been properly
initialized.

Reviewed by: bde, jhb
MFC after: 1 week
sys/dev/hwpmc/hwpmc_arm.c
sys/dev/hwpmc/hwpmc_x86.c
sys/kern/kern_condvar.c
sys/kern/kern_mutex.c
sys/kern/kern_rwlock.c
sys/kern/kern_sx.c
sys/kern/kern_thread.c
sys/kern/vfs_subr.c