/* $NetBSD: cpu.h,v 1.9 2001/08/31 04:18:52 simonb Exp $ */ #ifndef __HPCMIPS_CPU_H #define __HPCMIPS_CPU_H #include #include #ifndef _LOCORE #if defined(_KERNEL_OPT) #include "opt_lockdebug.h" #endif #include struct cpu_info { struct schedstate_percpu ci_schedstate; /* scheduler state */ #if defined(DIAGNOSTIC) || defined(LOCKDEBUG) u_long ci_spin_locks; /* # of spin locks held */ u_long ci_simple_locks; /* # of simple locks held */ #endif }; #ifdef _KERNEL extern struct cpu_info cpu_info_store; #define cpu_number() (0) #define curcpu() (&cpu_info_store) #endif #endif /* !_LOCORE */ #endif /* __HPCMIPS_CPU_H */