Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 23 Jun 2002 04:42:01 +1000 (EST)
From:      Bruce Evans <bde@zeta.org.au>
To:        Mark Peek <mp@FreeBSD.org>
Cc:        cvs-committers@FreeBSD.org, <cvs-all@FreeBSD.org>
Subject:   Re: cvs commit: src/sys/i386/isa clock.c
Message-ID:  <20020623043726.K9398-100000@gamplex.bde.org>
In-Reply-To: <200206221630.g5MGUJH76448@freefall.freebsd.org>

next in thread | previous in thread | raw e-mail | index | archive | help
On Sat, 22 Jun 2002, Mark Peek wrote:

> mp          2002/06/22 09:30:19 PDT
>
>   Modified files:
>     sys/i386/isa         clock.c
>   Log:
>   Clock frequencies reported by sysctl should be unsigned values. Discovered
>   when machdep.tsc_freq returned a negative number on a 2.2GHz Xeon.

Actually, they should be positive values.  Signed types are useful for
detection of overflow.

"int profrate" in <sys/gmon.h> is also broken.  It needs to hold any
clock frequency.

Bruce


To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe cvs-all" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20020623043726.K9398-100000>