Turbostat: Some reordering as per coding rules
authorVincent Brillault <git@lerya.net>
Wed, 4 Feb 2015 20:47:50 +0000 (21:47 +0100)
committerVincent Brillault <git@lerya.net>
Sat, 28 Feb 2015 06:35:42 +0000 (07:35 +0100)
src/turbostat.c

index aa23e14..c767cf1 100644 (file)
  */
 #define _GNU_SOURCE
 
+#include "collectd.h"
+#include "common.h"
+#include "plugin.h"
+#include "utils_time.h"
+
 #include <asm/msr-index.h>
 #include <stdarg.h>
 #include <stdio.h>
 #include <sched.h>
 #include <cpuid.h>
 
-#include "collectd.h"
-#include "common.h"
-#include "plugin.h"
-#include "utils_time.h"
-
 #define PLUGIN_NAME "turbostat"
 
 /*
@@ -223,6 +223,12 @@ struct topology {
 
 cdtime_t time_even, time_odd, time_delta;
 
+static const char *config_keys[] =
+{
+       "TCCActivationTemp",
+};
+static const int config_keys_num = STATIC_ARRAY_SIZE (config_keys);
+
 /*****************************
  *  MSR Manipulation helpers *
  *****************************/
@@ -1511,12 +1517,6 @@ err:
        return ret;
 }
 
-static const char *config_keys[] =
-{
-       "TCCActivationTemp",
-};
-static const int config_keys_num = STATIC_ARRAY_SIZE (config_keys);
-
 static int
 turbostat_config(const char *key, const char *value)
 {