summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPoul-Henning Kamp <phk@FreeBSD.org>1998-01-11 00:44:31 +0000
committerPoul-Henning Kamp <phk@FreeBSD.org>1998-01-11 00:44:31 +0000
commit55c449bc0ff1298113ce1aea94f7166dd8737cb2 (patch)
tree0e230fcd66e130d040d8659e2bf94723c240cbc5
parenta1db8c36a5f425dad35fd34020b6120ebcb287ec (diff)
Notes
-rw-r--r--sys/kern/kern_clock.c8
-rw-r--r--sys/kern/kern_tc.c8
-rw-r--r--sys/kern/kern_timeout.c8
-rw-r--r--sys/sys/callout.h4
4 files changed, 16 insertions, 12 deletions
diff --git a/sys/kern/kern_clock.c b/sys/kern/kern_clock.c
index 87ac79c61b08..8688da2cac07 100644
--- a/sys/kern/kern_clock.c
+++ b/sys/kern/kern_clock.c
@@ -36,7 +36,7 @@
* SUCH DAMAGE.
*
* @(#)kern_clock.c 8.5 (Berkeley) 1/21/94
- * $Id: kern_clock.c,v 1.49 1998/01/10 13:16:19 phk Exp $
+ * $Id: kern_clock.c,v 1.50 1998/01/10 14:55:02 phk Exp $
*/
/* Portions of this software are covered by the following: */
@@ -629,7 +629,11 @@ hardclock(frame)
CPU_CLOCKUPDATE(&time, &newtime);
}
- setsoftclock();
+ if (TAILQ_FIRST(&callwheel[ticks & callwheelmask]) == NULL) {
+ softticks++;
+ } else {
+ setsoftclock();
+ }
}
void
diff --git a/sys/kern/kern_tc.c b/sys/kern/kern_tc.c
index 87ac79c61b08..8688da2cac07 100644
--- a/sys/kern/kern_tc.c
+++ b/sys/kern/kern_tc.c
@@ -36,7 +36,7 @@
* SUCH DAMAGE.
*
* @(#)kern_clock.c 8.5 (Berkeley) 1/21/94
- * $Id: kern_clock.c,v 1.49 1998/01/10 13:16:19 phk Exp $
+ * $Id: kern_clock.c,v 1.50 1998/01/10 14:55:02 phk Exp $
*/
/* Portions of this software are covered by the following: */
@@ -629,7 +629,11 @@ hardclock(frame)
CPU_CLOCKUPDATE(&time, &newtime);
}
- setsoftclock();
+ if (TAILQ_FIRST(&callwheel[ticks & callwheelmask]) == NULL) {
+ softticks++;
+ } else {
+ setsoftclock();
+ }
}
void
diff --git a/sys/kern/kern_timeout.c b/sys/kern/kern_timeout.c
index a3c4462d16c6..2390b4d3f680 100644
--- a/sys/kern/kern_timeout.c
+++ b/sys/kern/kern_timeout.c
@@ -36,7 +36,7 @@
* SUCH DAMAGE.
*
* @(#)kern_clock.c 8.5 (Berkeley) 1/21/94
- * $Id: kern_timeout.c,v 1.49 1998/01/10 13:16:26 phk Exp $
+ * $Id: kern_timeout.c,v 1.50 1998/01/10 14:55:14 phk Exp $
*/
/* Portions of this software are covered by the following: */
@@ -82,7 +82,7 @@ struct callout_list callfree;
int callwheelsize, callwheelbits, callwheelmask;
struct callout_tailq *callwheel;
-static int softticks; /* Like ticks, but for softclock(). */
+int softticks; /* Like ticks, but for softclock(). */
static struct callout *nextsoftcheck; /* Next callout to be checked. */
/*
@@ -119,10 +119,6 @@ softclock()
* we last allowed interrupts.
*/
- if (TAILQ_FIRST(&callwheel[ticks & callwheelmask]) == NULL) {
- softticks++;
- return;
- }
(void)splsoftclock();
diff --git a/sys/sys/callout.h b/sys/sys/callout.h
index 3695c6c74aee..57ae78fc31a2 100644
--- a/sys/sys/callout.h
+++ b/sys/sys/callout.h
@@ -36,7 +36,7 @@
* SUCH DAMAGE.
*
* @(#)callout.h 8.2 (Berkeley) 1/21/94
- * $Id: callout.h,v 1.9 1997/09/24 16:39:27 gibbs Exp $
+ * $Id: callout.h,v 1.10 1997/12/01 05:45:15 davidg Exp $
*/
#ifndef _SYS_CALLOUT_H_
@@ -66,7 +66,7 @@ extern struct callout_list callfree;
extern struct callout *callout;
extern int ncallout;
extern struct callout_tailq *callwheel;
-extern int callwheelsize, callwheelbits, callwheelmask;
+extern int callwheelsize, callwheelbits, callwheelmask, softticks;
#endif /* KERNEL */
#endif /* _SYS_CALLOUT_H_ */