From a4d9af68ac36998d90d6571103cc940eff26deb7 Mon Sep 17 00:00:00 2001 From: Vincent Brillault Date: Sat, 23 Aug 2014 01:06:30 +0200 Subject: [PATCH] Turbostat: reorder checks: start with 'uid == 0 ?' --- src/turbostat.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/turbostat.c b/src/turbostat.c index 6a1b933d..aef66286 100644 --- a/src/turbostat.c +++ b/src/turbostat.c @@ -1449,9 +1449,9 @@ turbostat_init(void) { int ret; + DO_OR_GOTO_ERR(check_super_user()); DO_OR_GOTO_ERR(probe_cpu()); DO_OR_GOTO_ERR(check_dev_msr()); - DO_OR_GOTO_ERR(check_super_user()); DO_OR_GOTO_ERR(setup_all_buffers()); DO_OR_GOTO_ERR(for_all_cpus(set_temperature_target, EVEN_COUNTERS)); -- 2.11.0