Hi Kib,
-----Original Message----- From: <[email protected]> on behalf of Konstantin Belousov <[email protected]> Date: 2016-03-29, Tuesday at 01:44 To: <[email protected]>, <[email protected]>, <[email protected]> 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 _______________________________________________ [email protected] mailing list https://lists.freebsd.org/mailman/listinfo/svn-src-all To unsubscribe, send any mail to "[email protected]"
