From owner-cvs-all Mon Dec 14 11:24:32 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id LAA29246 for cvs-all-outgoing; Mon, 14 Dec 1998 11:24:32 -0800 (PST) (envelope-from owner-cvs-all@FreeBSD.ORG) Received: from freefall.freebsd.org (freefall.FreeBSD.ORG [204.216.27.21]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id LAA29241; Mon, 14 Dec 1998 11:24:30 -0800 (PST) (envelope-from brian@FreeBSD.org) From: Brian Somers Received: (from brian@localhost) by freefall.freebsd.org (8.8.8/8.8.5) id LAA08819; Mon, 14 Dec 1998 11:24:31 -0800 (PST) Date: Mon, 14 Dec 1998 11:24:31 -0800 (PST) Message-Id: <199812141924.LAA08819@freefall.freebsd.org> To: cvs-committers@FreeBSD.ORG, cvs-all@FreeBSD.ORG Subject: cvs commit: src/usr.sbin/ppp bundle.c timer.c timer.h Sender: owner-cvs-all@FreeBSD.ORG Precedence: bulk brian 1998/12/14 11:24:30 PST Modified files: usr.sbin/ppp bundle.c timer.c timer.h Log: 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. Revision Changes Path 1.42 +2 -2 src/usr.sbin/ppp/bundle.c 1.32 +41 -44 src/usr.sbin/ppp/timer.c 1.8 +2 -2 src/usr.sbin/ppp/timer.h To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe cvs-all" in the body of the message