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