summaryrefslogtreecommitdiffstats
path: root/usr.sbin/ppp/timer.h
diff options
context:
space:
mode:
authorbrian <brian@FreeBSD.org>1998-12-14 19:24:30 +0000
committerbrian <brian@FreeBSD.org>1998-12-14 19:24:30 +0000
commit3eeed8c02fce6965098f212060243027bd8118d0 (patch)
treead0cbd9ddeec8d1f23b1038b7d9fd752afa6ac61 /usr.sbin/ppp/timer.h
parentcf4547cfadfb4c1f51df3ddc23d1a2b1f61063dd (diff)
downloadFreeBSD-src-3eeed8c02fce6965098f212060243027bd8118d0.zip
FreeBSD-src-3eeed8c02fce6965098f212060243027bd8118d0.tar.gz
Rather than interrupting 10 times per second then checking
to see if there's anything to do, schedule the next alarm based on the next required timeout. This decreases the load when there are lots of relatively idle ppp processes. While I'm in there, handle the possibility that a timeout makes the timer element go out of scope by grabbing the enext pointer before executing the timer function.
Diffstat (limited to 'usr.sbin/ppp/timer.h')
-rw-r--r--usr.sbin/ppp/timer.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.sbin/ppp/timer.h b/usr.sbin/ppp/timer.h
index 5e6b6be..ae1f521 100644
--- a/usr.sbin/ppp/timer.h
+++ b/usr.sbin/ppp/timer.h
@@ -15,7 +15,7 @@
* IMPLIED WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED
* WARRANTIES OF MERCHANTIBILITY AND FITNESS FOR A PARTICULAR PURPOSE.
*
- * $Id: timer.h,v 1.6 1998/05/21 21:48:49 brian Exp $
+ * $Id: timer.h,v 1.7 1998/06/20 01:36:38 brian Exp $
*
* TODO:
*/
@@ -42,6 +42,6 @@ struct prompt;
extern void timer_Start(struct pppTimer *);
extern void timer_Stop(struct pppTimer *);
-extern void timer_InitService(void);
+extern void timer_InitService(int);
extern void timer_TermService(void);
extern void timer_Show(int LogLevel, struct prompt *);
OpenPOWER on IntegriCloud