diff options
author | Dominik Brodowski <linux@dominikbrodowski.net> | 2011-04-19 13:20:12 -0400 |
---|---|---|
committer | Dominik Brodowski <linux@dominikbrodowski.net> | 2011-07-29 12:35:38 -0400 |
commit | 02af3cb5aac13d8ef7edb7876260564b7d42ad2b (patch) | |
tree | 6e5294ee57cb10340bd31301e7b38a29d4a6a054 /tools/power/cpupower/bench/benchmark.h | |
parent | f5ac0641d129348399a8f39c95e7a16dc6e19f53 (diff) |
cpupowerutils: bench - ConfigStyle bugfixes
Signed-off-by: Dominik Brodowski <linux@dominikbrodowski.net>
Diffstat (limited to 'tools/power/cpupower/bench/benchmark.h')
-rw-r--r-- | tools/power/cpupower/bench/benchmark.h | 8 |
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 @@ | |||
19 | 19 | ||
20 | /* load loop, this schould take about 1 to 2ms to complete */ | 20 | /* load loop, this schould take about 1 to 2ms to complete */ |
21 | #define ROUNDS(x) {unsigned int rcnt; \ | 21 | #define ROUNDS(x) {unsigned int rcnt; \ |
22 | for (rcnt = 0; rcnt< x*1000; rcnt++) { \ | 22 | for (rcnt = 0; rcnt < x*1000; rcnt++) { \ |
23 | (void)(((int)(pow(rcnt, rcnt) * sqrt(rcnt*7230970)) ^ 7230716) ^ (int)atan2(rcnt, rcnt)); \ | 23 | (void)(((int)(pow(rcnt, rcnt) * \ |
24 | }} \ | 24 | sqrt(rcnt*7230970)) ^ 7230716) ^ \ |
25 | (int)atan2(rcnt, rcnt)); \ | ||
26 | } } \ | ||
25 | 27 | ||
26 | 28 | ||
27 | void start_benchmark(struct config *config); | 29 | void start_benchmark(struct config *config); |