Home | History | Annotate | Line # | Download | only in include
cpu.h revision 1.1
      1 /*	$NetBSD: cpu.h,v 1.1 2000/06/14 15:39:57 soren Exp $	*/
      2 
      3 #ifndef _SGIMIPS_CPU_H
      4 #define _SGIMIPS_CPU_H
      5 
      6 #include <mips/cpu.h>
      7 #include <mips/cpuregs.h>
      8 
      9 #ifndef _LOCORE
     10 #if defined(_KERNEL) && !defined(_LKM)
     11 #include "opt_lockdebug.h"
     12 #endif
     13 
     14 #include <sys/sched.h>
     15 struct cpu_info {
     16 	struct schedstate_percpu ci_schedstate; /* scheduler state */
     17 #if defined(DIAGNOSTIC) || defined(LOCKDEBUG)
     18 	u_long ci_spin_locks;		/* # of spin locks held */
     19 	u_long ci_simple_locks;		/* # of simple locks held */
     20 #endif
     21 };
     22 
     23 #ifdef _KERNEL
     24 extern struct cpu_info cpu_info_store;
     25 
     26 #define	cpu_number()	(0)
     27 #define	curcpu()	(&cpu_info_store)
     28 #endif
     29 #endif /* !_LOCORE */
     30 
     31 #endif  /* !_SGIMIPS_CPU_H_ */
     32