Source-Changes-HG archive

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

[src/trunk]: src/sys/arch/sparc/sparc curlwp is never NULL any more.



details:   https://anonhg.NetBSD.org/src/rev/12f7576daf3f
branches:  trunk
changeset: 750517:12f7576daf3f
user:      mrg <mrg%NetBSD.org@localhost>
date:      Mon Jan 04 03:54:42 2010 +0000

description:
curlwp is never NULL any more.

diffstat:

 sys/arch/sparc/sparc/timer_msiiep.c |  6 +++---
 sys/arch/sparc/sparc/timer_sun4.c   |  6 +++---
 2 files changed, 6 insertions(+), 6 deletions(-)

diffs (54 lines):

diff -r 1aef3807290d -r 12f7576daf3f sys/arch/sparc/sparc/timer_msiiep.c
--- a/sys/arch/sparc/sparc/timer_msiiep.c       Mon Jan 04 00:12:22 2010 +0000
+++ b/sys/arch/sparc/sparc/timer_msiiep.c       Mon Jan 04 03:54:42 2010 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: timer_msiiep.c,v 1.24 2010/01/03 23:03:21 mrg Exp $    */
+/*     $NetBSD: timer_msiiep.c,v 1.25 2010/01/04 03:54:42 mrg Exp $    */
 
 /*
  * Copyright (c) 1992, 1993
@@ -58,7 +58,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: timer_msiiep.c,v 1.24 2010/01/03 23:03:21 mrg Exp $");
+__KERNEL_RCSID(0, "$NetBSD: timer_msiiep.c,v 1.25 2010/01/04 03:54:42 mrg Exp $");
 
 #include <sys/param.h>
 #include <sys/kernel.h>
@@ -289,7 +289,7 @@
         * The factor 8 is only valid for stathz==100.
         * See also clock.c
         */
-       if (curlwp && (++cpuinfo.ci_schedstate.spc_schedticks & 7) == 0) {
+       if ((++cpuinfo.ci_schedstate.spc_schedticks & 7) == 0) {
                if (CLKF_LOPRI(frame, IPL_SCHED)) {
                        /* No need to schedule a soft interrupt */
                        spllowerschedclock();
diff -r 1aef3807290d -r 12f7576daf3f sys/arch/sparc/sparc/timer_sun4.c
--- a/sys/arch/sparc/sparc/timer_sun4.c Mon Jan 04 00:12:22 2010 +0000
+++ b/sys/arch/sparc/sparc/timer_sun4.c Mon Jan 04 03:54:42 2010 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: timer_sun4.c,v 1.16 2007/12/03 15:34:22 ad Exp $       */
+/*     $NetBSD: timer_sun4.c,v 1.17 2010/01/04 03:54:42 mrg Exp $      */
 
 /*
  * Copyright (c) 1992, 1993
@@ -58,7 +58,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: timer_sun4.c,v 1.16 2007/12/03 15:34:22 ad Exp $");
+__KERNEL_RCSID(0, "$NetBSD: timer_sun4.c,v 1.17 2010/01/04 03:54:42 mrg Exp $");
 
 #include <sys/param.h>
 #include <sys/kernel.h>
@@ -134,7 +134,7 @@
         * The factor 8 is only valid for stathz==100.
         * See also clock.c
         */
-       if (curlwp && (++cpuinfo.ci_schedstate.spc_schedticks & 7) == 0) {
+       if ((++cpuinfo.ci_schedstate.spc_schedticks & 7) == 0) {
                if (CLKF_LOPRI(frame, IPL_SCHED)) {
                        /* No need to schedule a soft interrupt */
                        spllowerschedclock();



Home | Main Index | Thread Index | Old Index