altq: Use tsc_mpsync to detect whether TSC could be used or not
authorSepherosa Ziehau <sephe@dragonflybsd.org>
Thu, 20 Jun 2013 03:34:22 +0000 (11:34 +0800)
committerSepherosa Ziehau <sephe@dragonflybsd.org>
Thu, 20 Jun 2013 03:34:22 +0000 (11:34 +0800)
sys/net/altq/altq_subr.c

index 87558dd..59d617c 100644 (file)
@@ -809,23 +809,8 @@ init_machclk(void)
 #endif
 
 #if defined(__i386__) || defined(__x86_64__)
-       if (!tsc_present) {
-               /* No TSC */
+       if (!tsc_mpsync)
                machclk_usepcc = 0;
-       }
-
-       if (ncpus > 1) {
-               /*
-                * XXX
-                * Disable PCC on SMP system, until we could
-                * determine whether TSCs are synchronized
-                * across CPUs or not.
-                */
-               machclk_usepcc = 0;
-       } else if (!tsc_invariant) {
-               /* Not invariant TSC */
-               machclk_usepcc = 0;
-       }
 #else
        machclk_usepcc = 0;
 #endif