summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPeter Wemm <peter@FreeBSD.org>1997-05-07 19:41:37 +0000
committerPeter Wemm <peter@FreeBSD.org>1997-05-07 19:41:37 +0000
commit335a8b8d26db875483d3380c7263feae652b1c95 (patch)
tree29bf6775a49ad605537d1d23031b88da5cf19538
parent53815e2fe69d47df89b18acfcbcd4a5d418e3a51 (diff)
Notes
-rw-r--r--sys/sys/proc.h11
1 files changed, 5 insertions, 6 deletions
diff --git a/sys/sys/proc.h b/sys/sys/proc.h
index 31105119c4ad..1bfd3c7bec0c 100644
--- a/sys/sys/proc.h
+++ b/sys/sys/proc.h
@@ -36,24 +36,22 @@
* SUCH DAMAGE.
*
* @(#)proc.h 8.15 (Berkeley) 5/19/95
- * $Id: proc.h,v 1.35 1997/04/07 09:35:15 peter Exp $
+ * $Id: proc.h,v 1.36 1997/04/26 11:46:21 peter Exp $
*/
#ifndef _SYS_PROC_H_
#define _SYS_PROC_H_
#include <machine/proc.h> /* Machine-dependent proc substruct. */
+#if defined(KERNEL) && defined(SMP)
+#include <machine/smp.h> /* cpunumber() */
+#endif
#include <sys/rtprio.h> /* For struct rtprio. */
#include <sys/select.h> /* For struct selinfo. */
#include <sys/time.h> /* For structs itimerval, timeval. */
#include <sys/queue.h>
#include <sys/param.h>
-#ifdef KERNEL
-#include "opt_smp.h"
-#include <machine/smp.h>
-#endif
-
/*
* One structure allocated per session.
*/
@@ -274,6 +272,7 @@ extern LIST_HEAD(pgrphashhead, pgrp) *pgrphashtbl;
extern u_long pgrphash;
#ifdef SMP
+extern struct proc *SMPcurproc[]; /* Current running proc. */
#define curproc (SMPcurproc[cpunumber()])
#else /* !SMP */
extern struct proc *curproc; /* Current running proc. */