From 854609d8d95c79b7da9960c91e5faab6f823b63b Mon Sep 17 00:00:00 2001 From: bde Date: Tue, 2 Feb 1999 09:08:23 +0000 Subject: [PATCH] Added a hopefully-machine-independent macro for determining if a reschedule is pending. --- sys/alpha/include/cpu.h | 4 +++- sys/amd64/include/cpu.h | 4 +++- sys/i386/include/cpu.h | 4 +++- 3 files changed, 9 insertions(+), 3 deletions(-) diff --git a/sys/alpha/include/cpu.h b/sys/alpha/include/cpu.h index 5a0a15acf221..e4cf206ed0db 100644 --- a/sys/alpha/include/cpu.h +++ b/sys/alpha/include/cpu.h @@ -1,4 +1,4 @@ -/* $Id: cpu.h,v 1.3 1998/07/12 16:32:06 dfr Exp $ */ +/* $Id: cpu.h,v 1.4 1998/10/06 08:40:17 dfr Exp $ */ /* From: NetBSD: cpu.h,v 1.18 1997/09/23 23:17:49 mjacob Exp */ /* @@ -77,6 +77,8 @@ struct clockframe { */ #define need_resched() { want_resched = 1; aston(); } +#define resched_wanted() want_resched + /* * Give a profiling tick to the current process when the user profiling * buffer pages are invalid. On the hp300, request an ast to send us diff --git a/sys/amd64/include/cpu.h b/sys/amd64/include/cpu.h index af69a36184d9..0536b739ab9a 100644 --- a/sys/amd64/include/cpu.h +++ b/sys/amd64/include/cpu.h @@ -34,7 +34,7 @@ * SUCH DAMAGE. * * from: @(#)cpu.h 5.4 (Berkeley) 5/9/91 - * $Id: cpu.h,v 1.36 1998/08/31 08:41:40 kato Exp $ + * $Id: cpu.h,v 1.37 1999/01/29 08:36:43 dillon Exp $ */ #ifndef _MACHINE_CPU_H_ @@ -85,6 +85,8 @@ */ #define need_resched() { want_resched = 1; aston(); } +#define resched_wanted() want_resched + /* * Arrange to handle pending profiling ticks before returning to user mode. * diff --git a/sys/i386/include/cpu.h b/sys/i386/include/cpu.h index af69a36184d9..0536b739ab9a 100644 --- a/sys/i386/include/cpu.h +++ b/sys/i386/include/cpu.h @@ -34,7 +34,7 @@ * SUCH DAMAGE. * * from: @(#)cpu.h 5.4 (Berkeley) 5/9/91 - * $Id: cpu.h,v 1.36 1998/08/31 08:41:40 kato Exp $ + * $Id: cpu.h,v 1.37 1999/01/29 08:36:43 dillon Exp $ */ #ifndef _MACHINE_CPU_H_ @@ -85,6 +85,8 @@ */ #define need_resched() { want_resched = 1; aston(); } +#define resched_wanted() want_resched + /* * Arrange to handle pending profiling ticks before returning to user mode. *