Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/nathanw_sa]: src/sys/arch/sparc/sparc LWP'ify new schedclock code.
details: https://anonhg.NetBSD.org/src/rev/dadc0cc02d91
branches: nathanw_sa
changeset: 506656:dadc0cc02d91
user: thorpej <thorpej%NetBSD.org@localhost>
date: Fri Jan 03 17:36:14 2003 +0000
description:
LWP'ify new schedclock code.
diffstat:
sys/arch/sparc/sparc/timer.c | 8 ++++----
sys/arch/sparc/sparc/timer_sun4.c | 4 ++--
sys/arch/sparc/sparc/timer_sun4m.c | 4 ++--
3 files changed, 8 insertions(+), 8 deletions(-)
diffs (59 lines):
diff -r 04cad6086446 -r dadc0cc02d91 sys/arch/sparc/sparc/timer.c
--- a/sys/arch/sparc/sparc/timer.c Fri Jan 03 17:25:02 2003 +0000
+++ b/sys/arch/sparc/sparc/timer.c Fri Jan 03 17:36:14 2003 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: timer.c,v 1.3.2.7 2003/01/03 16:55:28 thorpej Exp $ */
+/* $NetBSD: timer.c,v 1.3.2.8 2003/01/03 17:36:14 thorpej Exp $ */
/*
* Copyright (c) 1992, 1993
@@ -76,10 +76,10 @@
void schedintr(void *v)
{
- struct proc *p = curproc;
+ struct lwp *l = curlwp;
- if (p != NULL)
- schedclock(p);
+ if (l != NULL)
+ schedclock(l);
}
/*
diff -r 04cad6086446 -r dadc0cc02d91 sys/arch/sparc/sparc/timer_sun4.c
--- a/sys/arch/sparc/sparc/timer_sun4.c Fri Jan 03 17:25:02 2003 +0000
+++ b/sys/arch/sparc/sparc/timer_sun4.c Fri Jan 03 17:36:14 2003 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: timer_sun4.c,v 1.1.2.5 2003/01/03 16:55:28 thorpej Exp $ */
+/* $NetBSD: timer_sun4.c,v 1.1.2.6 2003/01/03 17:36:14 thorpej Exp $ */
/*
* Copyright (c) 1992, 1993
@@ -132,7 +132,7 @@
* values we should compute a mask, approx.
* mask = round_power2(stathz / schedhz) - 1
*/
- if (curproc && (++cpuinfo.ci_schedstate.spc_schedticks & 7) == 0)
+ if (curlwp && (++cpuinfo.ci_schedstate.spc_schedticks & 7) == 0)
softintr_schedule(sched_cookie);
return (1);
diff -r 04cad6086446 -r dadc0cc02d91 sys/arch/sparc/sparc/timer_sun4m.c
--- a/sys/arch/sparc/sparc/timer_sun4m.c Fri Jan 03 17:25:02 2003 +0000
+++ b/sys/arch/sparc/sparc/timer_sun4m.c Fri Jan 03 17:36:14 2003 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: timer_sun4m.c,v 1.1.2.4 2003/01/03 16:55:28 thorpej Exp $ */
+/* $NetBSD: timer_sun4m.c,v 1.1.2.5 2003/01/03 17:36:14 thorpej Exp $ */
/*
* Copyright (c) 1992, 1993
@@ -161,7 +161,7 @@
* values we should compute a mask, approx.
* mask = round_power2(stathz / schedhz) - 1
*/
- if (curproc && (++cpuinfo.ci_schedstate.spc_schedticks & 7) == 0)
+ if (curlwp && (++cpuinfo.ci_schedstate.spc_schedticks & 7) == 0)
raise_ipi(&cpuinfo, IPL_SCHED); /* sched_cookie->pil */
return (1);
Home |
Main Index |
Thread Index |
Old Index