Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/arch/usermode/include Add macro cpu_need_resched



details:   https://anonhg.NetBSD.org/src/rev/1a130f9bf11a
branches:  trunk
changeset: 772868:1a130f9bf11a
user:      reinoud <reinoud%NetBSD.org@localhost>
date:      Thu Jan 19 12:10:00 2012 +0000

description:
Add macro cpu_need_resched

diffstat:

 sys/arch/usermode/include/cpu.h |  3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)

diffs (17 lines):

diff -r fda81b20e44a -r 1a130f9bf11a sys/arch/usermode/include/cpu.h
--- a/sys/arch/usermode/include/cpu.h   Thu Jan 19 09:25:51 2012 +0000
+++ b/sys/arch/usermode/include/cpu.h   Thu Jan 19 12:10:00 2012 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: cpu.h,v 1.7 2012/01/14 21:23:24 reinoud Exp $ */
+/* $NetBSD: cpu.h,v 1.8 2012/01/19 12:10:00 reinoud Exp $ */
 
 /*-
  * Copyright (c) 2007 Jared D. McNeill <jmcneill%invisible.ca@localhost>
@@ -45,6 +45,7 @@
 
 extern int     astpending;
 #define aston(ci) (astpending++)
+#define cpu_need_resched(ci, flags) { ci->ci_want_resched = 1; aston(); }
 
 
 struct cpu_info {



Home | Main Index | Thread Index | Old Index