Source-Changes-HG archive

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

[src/nathanw_sa]: src/sys/sys Like cpu_switch(), allow cpu_preempt() to be a ...



details:   https://anonhg.NetBSD.org/src/rev/13ae932d0fb0
branches:  nathanw_sa
changeset: 506635:13ae932d0fb0
user:      thorpej <thorpej%NetBSD.org@localhost>
date:      Mon Dec 30 18:28:01 2002 +0000

description:
Like cpu_switch(), allow cpu_preempt() to be a CPP macro.

diffstat:

 sys/sys/lwp.h |  4 +++-
 1 files changed, 3 insertions(+), 1 deletions(-)

diffs (19 lines):

diff -r d6100088ae04 -r 13ae932d0fb0 sys/sys/lwp.h
--- a/sys/sys/lwp.h     Mon Dec 30 17:32:59 2002 +0000
+++ b/sys/sys/lwp.h     Mon Dec 30 18:28:01 2002 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: lwp.h,v 1.1.2.21 2002/12/29 21:07:37 thorpej Exp $     */
+/*     $NetBSD: lwp.h,v 1.1.2.22 2002/12/30 18:28:01 thorpej Exp $     */
 
 /*-
  * Copyright (c) 2001 The NetBSD Foundation, Inc.
@@ -158,7 +158,9 @@
 #ifndef cpu_switch
 int    cpu_switch (struct lwp *, struct lwp *);
 #endif
+#ifndef cpu_preempt
 void   cpu_preempt (struct lwp *, struct lwp *);
+#endif
 
 int newlwp(struct lwp *, struct proc *, vaddr_t, int /* XXX boolean_t */, int,
     void *, size_t, void (*)(void *), void *, struct lwp **);



Home | Main Index | Thread Index | Old Index