Moved declarations of tsleep() and wakeup() from proc.h to systm.h so

that proc.h doesn't have to be included so often.
This commit is contained in:
Bruce Evans 1996-10-12 16:11:58 +00:00
parent 2dab355e6b
commit bcb2e44399
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=18884
2 changed files with 9 additions and 4 deletions

View File

@ -36,7 +36,7 @@
* SUCH DAMAGE.
*
* @(#)proc.h 8.15 (Berkeley) 5/19/95
* $Id: proc.h,v 1.27 1996/08/20 07:18:08 smpatel Exp $
* $Id: proc.h,v 1.28 1996/09/13 09:20:08 bde Exp $
*/
#ifndef _SYS_PROC_H_
@ -300,9 +300,7 @@ void setrunqueue __P((struct proc *));
void sleepinit __P((void));
void remrq __P((struct proc *));
void cpu_switch __P((struct proc *));
int tsleep __P((void *chan, int pri, char *wmesg, int timo));
void unsleep __P((struct proc *));
void wakeup __P((void *chan));
void wakeup_one __P((void *chan));
void cpu_exit __P((struct proc *)) __dead2;

View File

@ -36,7 +36,7 @@
* SUCH DAMAGE.
*
* @(#)systm.h 8.7 (Berkeley) 3/29/95
* $Id: systm.h,v 1.45 1996/09/29 15:00:19 bde Exp $
* $Id: systm.h,v 1.46 1996/10/12 15:54:04 bde Exp $
*/
#ifndef _SYS_SYSTM_H_
@ -180,4 +180,11 @@ typedef void (*exitlist_fn)(struct proc *procp);
int at_exit(exitlist_fn function);
int rm_at_exit(exitlist_fn function);
/*
* Common `proc' functions are declared here so that proc.h can be included
* less often.
*/
int tsleep __P((void *chan, int pri, char *wmesg, int timo));
void wakeup __P((void *chan));
#endif /* !_SYS_SYSTM_H_ */