From owner-cvs-all Wed Aug 5 09:44:37 1998 Return-Path: Received: (from daemon@localhost) by hub.freebsd.org (8.8.8/8.8.8) id JAA14790 for cvs-all-outgoing; Wed, 5 Aug 1998 09:44:37 -0700 (PDT) (envelope-from owner-cvs-all) 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 JAA14769; Wed, 5 Aug 1998 09:44:31 -0700 (PDT) (envelope-from bde@FreeBSD.org) From: Bruce Evans Received: (from bde@localhost) by freefall.freebsd.org (8.8.8/8.8.5) id JAA27360; Wed, 5 Aug 1998 09:44:30 -0700 (PDT) Date: Wed, 5 Aug 1998 09:44:30 -0700 (PDT) Message-Id: <199808051644.JAA27360@freefall.freebsd.org> To: cvs-committers@FreeBSD.ORG, cvs-all@FreeBSD.ORG Subject: cvs commit: src/sys/i386/linux linux_misc.c Sender: owner-cvs-all@FreeBSD.ORG X-Loop: FreeBSD.org Precedence: bulk bde 1998/08/05 09:44:30 PDT Modified files: sys/i386/linux linux_misc.c Log: Converted the second last instance of hzto() to tvtohz(). Fixed nearby bugs (in linux_alarm()): - the itimer for the alarm was relative to the epoch instead of relative to the boot time. This was harmless because the itimer's interval is 0. - the seconds arg was not checked for validity before converting it to a possibly different value. - printf format errors. Improvements: Don't use splclock(). splsoftclock() suffices. Don't complicate things by micro-optimizing interrupt latency. Minor improvements: Various micro-optimizations to exploit the specialness of the alarm itimer and the value 0. Revision Changes Path 1.41 +15 -20 src/sys/i386/linux/linux_misc.c