svn commit: r297374 - head/sys/x86/x86
Pokala, Ravi
rpokala at panasas.com
Tue Mar 29 14:09:13 UTC 2016
Hi Kib,
-----Original Message-----
From: <owner-src-committers at freebsd.org> on behalf of Konstantin Belousov <kib at FreeBSD.org>
Date: 2016-03-29, Tuesday at 01:44
To: <src-committers at freebsd.org>, <svn-src-all at freebsd.org>, <svn-src-head at freebsd.org>
Subject: svn commit: r297374 - head/sys/x86/x86
>Author: kib
>Date: Tue Mar 29 08:44:56 2016
>New Revision: 297374
>URL: https://svnweb.freebsd.org/changeset/base/297374
>
>...
>
>+ KASSERT((cpu_feature & CPUID_TSC) != 0 && tsc_freq != 0,
>+ ("TSC not initialized"));
>+ r = rdtsc();
>+ for (r = 0; r < LOOPS; r++) {
>+ (void)lapic_read_icr_lo();
>+ ia32_pause();
>+ }
>+ r = rdtsc() - r;
>
>...
Doesn't use of r as the loop index overwrite the initial value returned by rdtsc()?
-Ravi
More information about the svn-src-all
mailing list