From 64d6b501e5411a93751ffb9be6154a90389dd9e0 Mon Sep 17 00:00:00 2001 From: Vincent Brillault Date: Sat, 23 Aug 2014 00:42:49 +0200 Subject: [PATCH] Turbostat: remove 'units' variable, only used once --- src/turbostat.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/turbostat.c b/src/turbostat.c index 5022c568..46f74a74 100644 --- a/src/turbostat.c +++ b/src/turbostat.c @@ -69,7 +69,6 @@ static unsigned int do_c8_c9_c10; static unsigned int do_slm_cstates; static unsigned int has_aperf; static unsigned int has_epb; -static unsigned int units = 1000000000; /* Ghz etc */ static unsigned int genuine_intel; static unsigned int has_invariant_tsc; static unsigned int do_nehalem_platform_info; @@ -831,7 +830,7 @@ submit_counters(struct thread_data *t, struct core_data *c, /* GHz */ if (has_aperf && ((!aperf_mperf_unstable) || (!(t->aperf > t->tsc || t->mperf > t->tsc)))) - turbostat_submit(NULL, "frequency", name, 1.0 * t->tsc / units * t->aperf / t->mperf / interval_float); + turbostat_submit(NULL, "frequency", name, 1.0 * t->tsc / 1000000000 * t->aperf / t->mperf / interval_float); /* SMI */ if (do_smi) -- 2.30.2