mirror of
https://git.FreeBSD.org/src.git
synced 2024-12-18 10:35:55 +00:00
remove #include "opt_smp.h"
declaration of SMPcurproc[] moved to here next to it's uniprocessor counterpart
This commit is contained in:
parent
53815e2fe6
commit
335a8b8d26
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=25543
@ -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. */
|
||||
|
Loading…
Reference in New Issue
Block a user