summaryrefslogtreecommitdiffstats
path: root/tools/power/cpupower/bench/benchmark.h
diff options
context:
space:
mode:
Diffstat (limited to 'tools/power/cpupower/bench/benchmark.h')
-rw-r--r--tools/power/cpupower/bench/benchmark.h8
1 files changed, 5 insertions, 3 deletions
diff --git a/tools/power/cpupower/bench/benchmark.h b/tools/power/cpupower/bench/benchmark.h
index 0691f91b720b..51d7f50ac2bb 100644
--- a/tools/power/cpupower/bench/benchmark.h
+++ b/tools/power/cpupower/bench/benchmark.h
@@ -19,9 +19,11 @@
/* load loop, this schould take about 1 to 2ms to complete */
#define ROUNDS(x) {unsigned int rcnt; \
- for (rcnt = 0; rcnt< x*1000; rcnt++) { \
- (void)(((int)(pow(rcnt, rcnt) * sqrt(rcnt*7230970)) ^ 7230716) ^ (int)atan2(rcnt, rcnt)); \
- }} \
+ for (rcnt = 0; rcnt < x*1000; rcnt++) { \
+ (void)(((int)(pow(rcnt, rcnt) * \
+ sqrt(rcnt*7230970)) ^ 7230716) ^ \
+ (int)atan2(rcnt, rcnt)); \
+ } } \
void start_benchmark(struct config *config);
OpenPOWER on IntegriCloud