cpupowerutils: bench - ConfigStyle bugfixes
Signed-off-by: Dominik Brodowski <linux@dominikbrodowski.net>
diff --git a/tools/power/cpupower/bench/system.c b/tools/power/cpupower/bench/system.c
index 3e3a82e..f01e3f4 100644
--- a/tools/power/cpupower/bench/system.c
+++ b/tools/power/cpupower/bench/system.c
@@ -31,7 +31,7 @@
#include "system.h"
/**
- * returns time since epoch in µs
+ * returns time since epoch in µs
*
* @retval time
**/
@@ -87,7 +87,7 @@
int set_cpu_affinity(unsigned int cpu)
{
cpu_set_t cpuset;
-
+
CPU_ZERO(&cpuset);
CPU_SET(cpu, &cpuset);
@@ -129,7 +129,7 @@
}
/**
- * notifys the user that the benchmark may run some time
+ * notifies the user that the benchmark may run some time
*
* @param config benchmark config values
*
@@ -142,8 +142,11 @@
unsigned int round;
for (round = 0; round < config->rounds; round++) {
- sleep_time += 2 * config->cycles * (config->sleep + config->sleep_step * round);
- load_time += 2 * config->cycles * (config->load + config->load_step * round) + (config->load + config->load_step * round * 4);
+ sleep_time += 2 * config->cycles *
+ (config->sleep + config->sleep_step * round);
+ load_time += 2 * config->cycles *
+ (config->load + config->load_step * round) +
+ (config->load + config->load_step * round * 4);
}
if (config->verbose || config->output != stdout)