summaryrefslogtreecommitdiffstats
path: root/sys
diff options
context:
space:
mode:
authorpeter <peter@FreeBSD.org>1997-05-07 19:41:37 +0000
committerpeter <peter@FreeBSD.org>1997-05-07 19:41:37 +0000
commitdc9f8d3c76560c63b4e33f2a0b7d1b5a0f18e623 (patch)
tree47775c43624a3f786ddb610e03d71b6c1f56c105 /sys
parenta49c3ce9efbb5ccc847233e089d1b66432fb3aa9 (diff)
downloadFreeBSD-src-dc9f8d3c76560c63b4e33f2a0b7d1b5a0f18e623.zip
FreeBSD-src-dc9f8d3c76560c63b4e33f2a0b7d1b5a0f18e623.tar.gz
remove #include "opt_smp.h"
declaration of SMPcurproc[] moved to here next to it's uniprocessor counterpart
Diffstat (limited to 'sys')
-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 3110511..1bfd3c7 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. */
OpenPOWER on IntegriCloud