diff options
author | Mark Kettenis <kettenis@cvs.openbsd.org> | 2007-05-14 21:38:09 +0000 |
---|---|---|
committer | Mark Kettenis <kettenis@cvs.openbsd.org> | 2007-05-14 21:38:09 +0000 |
commit | 675cf8f379a783be36eb543f5f999aedaac18260 (patch) | |
tree | 4bcf2eeb8d77ff20abd7cd2889a8ce76069b7332 /sys/arch/sparc64/include | |
parent | 2bda091d99ae4011f8a5311f07718d6f4fbd1831 (diff) |
Move want_resched into struct cpu_info.
Diffstat (limited to 'sys/arch/sparc64/include')
-rw-r--r-- | sys/arch/sparc64/include/cpu.h | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/sys/arch/sparc64/include/cpu.h b/sys/arch/sparc64/include/cpu.h index 9f5cc50ed1a..52eced2f583 100644 --- a/sys/arch/sparc64/include/cpu.h +++ b/sys/arch/sparc64/include/cpu.h @@ -1,4 +1,4 @@ -/* $OpenBSD: cpu.h,v 1.39 2007/05/02 18:46:06 kettenis Exp $ */ +/* $OpenBSD: cpu.h,v 1.40 2007/05/14 21:38:08 kettenis Exp $ */ /* $NetBSD: cpu.h,v 1.28 2001/06/14 22:56:58 thorpej Exp $ */ /* @@ -105,6 +105,8 @@ struct cpu_info { int ci_upaid; struct schedstate_percpu ci_schedstate; /* scheduler state */ + int ci_want_resched; + /* DEBUG/DIAGNOSTIC stuff */ u_long ci_spin_locks; /* # of spin locks held */ u_long ci_simple_locks;/* # of simple locks held */ @@ -163,8 +165,7 @@ extern int want_ast; * Preempt the current process if in interrupt from user mode, * or after the current trap/syscall if in system mode. */ -extern int want_resched; /* resched() was called */ -#define need_resched(ci) (want_resched = 1, want_ast = 1) +#define need_resched(ci) (ci->ci_want_resched = 1, want_ast = 1) /* * This is used during profiling to integrate system time. |