From b2d0b4b865acfa4e370eb9dbae1735ef5eaadb74 Mon Sep 17 00:00:00 2001 From: Vincent Brillault Date: Wed, 4 Feb 2015 21:47:50 +0100 Subject: [PATCH] Turbostat: Some reordering as per coding rules --- src/turbostat.c | 22 +++++++++++----------- 1 file changed, 11 insertions(+), 11 deletions(-) diff --git a/src/turbostat.c b/src/turbostat.c index aa23e141..c767cf16 100644 --- a/src/turbostat.c +++ b/src/turbostat.c @@ -35,6 +35,11 @@ */ #define _GNU_SOURCE +#include "collectd.h" +#include "common.h" +#include "plugin.h" +#include "utils_time.h" + #include #include #include @@ -53,11 +58,6 @@ #include #include -#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) { -- 2.30.2