diff options
author | julian <julian@FreeBSD.org> | 2007-03-08 06:44:34 +0000 |
---|---|---|
committer | julian <julian@FreeBSD.org> | 2007-03-08 06:44:34 +0000 |
commit | 80d6cde009b5766eaf8fb0ee64deb32113487939 (patch) | |
tree | f414b9c84952f9cf32c444f2ea351d4886916534 /sys/kern/subr_prf.c | |
parent | 3483dab550cf625cb12e9b0c98e86757477d7a9c (diff) | |
download | FreeBSD-src-80d6cde009b5766eaf8fb0ee64deb32113487939.zip FreeBSD-src-80d6cde009b5766eaf8fb0ee64deb32113487939.tar.gz |
Instead of doing comparisons using the pcpu area to see if
a thread is an idle thread, just see if it has the IDLETD
flag set. That flag will probably move to the pflags word
as it's permenent and never chenges for the life of the
system so it doesn't need locking.
Diffstat (limited to 'sys/kern/subr_prf.c')
-rw-r--r-- | sys/kern/subr_prf.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/kern/subr_prf.c b/sys/kern/subr_prf.c index 2d18b49..a0605ab 100644 --- a/sys/kern/subr_prf.c +++ b/sys/kern/subr_prf.c @@ -133,7 +133,7 @@ uprintf(const char *fmt, ...) struct putchar_arg pca; int retval; - if (td == NULL || td == PCPU_GET(idlethread)) + if (td == NULL || TD_IS_IDLETHREAD(td)) return (0); mtx_lock(&Giant); |