projects
/
collectd.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
87c3420
)
Turbostat: Some reordering as per coding rules
author
Vincent Brillault
<git@lerya.net>
Wed, 4 Feb 2015 20:47:50 +0000
(21:47 +0100)
committer
Vincent Brillault
<git@lerya.net>
Sat, 28 Feb 2015 06:35:42 +0000
(07:35 +0100)
src/turbostat.c
patch
|
blob
|
history
diff --git
a/src/turbostat.c
b/src/turbostat.c
index
aa23e14
..
c767cf1
100644
(file)
--- a/
src/turbostat.c
+++ b/
src/turbostat.c
@@
-35,6
+35,11
@@
*/
#define _GNU_SOURCE
*/
#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 <asm/msr-index.h>
#include <stdarg.h>
#include <stdio.h>
@@
-53,11
+58,6
@@
#include <sched.h>
#include <cpuid.h>
#include <sched.h>
#include <cpuid.h>
-#include "collectd.h"
-#include "common.h"
-#include "plugin.h"
-#include "utils_time.h"
-
#define PLUGIN_NAME "turbostat"
/*
#define PLUGIN_NAME "turbostat"
/*
@@
-223,6
+223,12
@@
struct topology {
cdtime_t time_even, time_odd, time_delta;
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 *
*****************************/
/*****************************
* MSR Manipulation helpers *
*****************************/
@@
-1511,12
+1517,6
@@
err:
return ret;
}
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)
{
static int
turbostat_config(const char *key, const char *value)
{