diff options
author | jake <jake@FreeBSD.org> | 2001-01-10 04:43:51 +0000 |
---|---|---|
committer | jake <jake@FreeBSD.org> | 2001-01-10 04:43:51 +0000 |
commit | 4f5d8ed82579a945555b585b43ab2d09eae30c77 (patch) | |
tree | 512839f19fc02786cc9904c4406357f3573a8b09 /sys/kern/subr_prf.c | |
parent | 776ef1f43089579877329277af83423976a699d2 (diff) | |
download | FreeBSD-src-4f5d8ed82579a945555b585b43ab2d09eae30c77.zip FreeBSD-src-4f5d8ed82579a945555b585b43ab2d09eae30c77.tar.gz |
Use PCPU_GET, PCPU_PTR and PCPU_SET to access all per-cpu variables
other then curproc.
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 efff7f8..86a53766 100644 --- a/sys/kern/subr_prf.c +++ b/sys/kern/subr_prf.c @@ -113,7 +113,7 @@ uprintf(const char *fmt, ...) struct putchar_arg pca; int retval = 0; - if (p && p != idleproc && p->p_flag & P_CONTROLT && + if (p && p != PCPU_GET(idleproc) && p->p_flag & P_CONTROLT && p->p_session->s_ttyvp) { va_start(ap, fmt); pca.tty = p->p_session->s_ttyp; |