svn commit: r219676 - head/sys/x86/x86

Jung-uk Kim jkim at FreeBSD.org
Tue Mar 15 21:14:26 UTC 2011


On Tuesday 15 March 2011 05:01 pm, John Baldwin wrote:
> On Tuesday, March 15, 2011 3:47:20 pm Jung-uk Kim wrote:
> > Author: jkim
> > Date: Tue Mar 15 19:47:20 2011
> > New Revision: 219676
> > URL: http://svn.freebsd.org/changeset/base/219676
> >
> > Log:
> >   Do not let machdep.tsc_freq modify tsc_freq itself.  It is bad
> > for i386 as it does not operate atomically.  Actually, it serves
> > no purpose.
> >
> >   Noticed by:	bde
>
> Ouch,  please revert!   We have depended on this for testing to
> workaround BIOS issues (e.g. the USB SMI# handler firing at a bad
> time during boot causing the TSC frequency to be calculated
> incorrectly).  I agree it's a hack that this works, but it has
> actually proven useful in the past.

You can still change timecounter frequency.  Can you please explain 
why you need to change tsc_freq directly?

Jung-uk Kim


More information about the svn-src-all mailing list