From owner-freebsd-hackers Tue Aug 1 12: 5:29 2000 Delivered-To: freebsd-hackers@freebsd.org Received: from mail.cs.umn.edu (mail.cs.umn.edu [128.101.32.200]) by hub.freebsd.org (Postfix) with ESMTP id AC91737B8D7 for ; Tue, 1 Aug 2000 12:05:25 -0700 (PDT) (envelope-from dong@cs.umn.edu) Received: from chopin.cs.umn.edu (IDENT:root@chopin.cs.umn.edu [128.101.34.191]) by mail.cs.umn.edu (8.9.3/8.9.3) with ESMTP id OAA13267 for ; Tue, 1 Aug 2000 14:05:24 -0500 (CDT) Received: from localhost (dong@localhost) by chopin.cs.umn.edu (8.9.3/8.9.0) with ESMTP id OAA14066 for ; Tue, 1 Aug 2000 14:05:24 -0500 X-Authentication-Warning: chopin.cs.umn.edu: dong owned process doing -bs Date: Tue, 1 Aug 2000 14:05:23 -0500 (CDT) From: Yingfei Dong To: freebsd-hackers@FreeBSD.org Subject: Fine grain timer Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG hi, folks, I am revising a driver for a network interface. I need have a fine-grain timer (33us). Could anyone tell me how to get it? I checked /sys/kern/kern_clock.c. Is it the right place? Could I just revise 'hz' to make the timeout function to do it? Where does 'hz' is initialized? I got a response from misc news list, which warns me never try to change 'hz' over 1000. It means the resolution of the timer is 1ms. But I need 33us timer. ANy inputs? thanks for your help, PS: sorry for repost this because I just check the archive and found out it set a wrong subject of my previous posting. =================================================== Yingfei Dong 4-192 EECS Building, 200 Union Street, SE Tel: 612-626-7526 Minneapolis, MN 55455 FAX: 612-625-0572 =================================================== To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message