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