From: Vincent Brillault Date: Wed, 4 Feb 2015 20:47:50 +0000 (+0100) Subject: Turbostat: Some reordering as per coding rules X-Git-Tag: collectd-5.5.0~24^2~27 X-Git-Url: https://git.octo.it/?p=collectd.git;a=commitdiff_plain;h=b2d0b4b865acfa4e370eb9dbae1735ef5eaadb74 Turbostat: Some reordering as per coding rules --- 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) {