Add FreeBSD cpu affinity support.
[fio.git] / gettime.c
index 5c0e44576f2b3392fd0c982b2ee35a95c06cec3a..5b85a23b8519f3ca2bf1bde102972f4bf648377b 100644 (file)
--- a/gettime.c
+++ b/gettime.c
@@ -342,14 +342,6 @@ void fio_clock_init(void)
                log_err("fio: can't create TLS key\n");
 #endif
 
-       /*
-        * Probably an AMD issue, will need to investigate. Until that
-        * is done, disable the CPU clock.
-        */
-#if FIO_OS == os_solaris
-       tsc_reliable = 0;
-#endif
-
        fio_clock_source_inited = fio_clock_source;
        calibrate_cpu_clock();
 
@@ -509,6 +501,7 @@ int fio_monotonic_clocktest(void)
        unsigned int nr_cpus = cpus_online();
        struct clock_entry *entries;
        unsigned long tentries, failed;
+       struct clock_entry *prev, *this;
        uint64_t seq = 0;
        int i;
 
@@ -566,7 +559,7 @@ int fio_monotonic_clocktest(void)
        qsort(entries, tentries, sizeof(struct clock_entry), clock_cmp);
 
        for (failed = i = 0; i < tentries; i++) {
-               struct clock_entry *prev, *this = &entries[i];
+               this = &entries[i];
 
                if (!i) {
                        prev = this;