From 335a8b8d26db875483d3380c7263feae652b1c95 Mon Sep 17 00:00:00 2001 From: Peter Wemm Date: Wed, 7 May 1997 19:41:37 +0000 Subject: [PATCH] remove #include "opt_smp.h" declaration of SMPcurproc[] moved to here next to it's uniprocessor counterpart --- sys/sys/proc.h | 11 +++++------ 1 file 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-dependent proc substruct. */ +#if defined(KERNEL) && defined(SMP) +#include /* cpunumber() */ +#endif #include /* For struct rtprio. */ #include /* For struct selinfo. */ #include /* For structs itimerval, timeval. */ #include #include -#ifdef KERNEL -#include "opt_smp.h" -#include -#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. */