Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Macros | Functions
benchmark.h File Reference

Go to the source code of this file.

Macros

#define ROUNDS(x)
 

Functions

void start_benchmark (struct config *config)
 

Macro Definition Documentation

#define ROUNDS (   x)
Value:
{unsigned int rcnt; \
for (rcnt = 0; rcnt < x*1000; rcnt++) { \
(void)(((int)(pow(rcnt, rcnt) * \
sqrt(rcnt*7230970)) ^ 7230716) ^ \
(int)atan2(rcnt, rcnt)); \
} } \

Definition at line 21 of file benchmark.h.

Function Documentation

void start_benchmark ( struct config config)

benchmark generates a specific sleep an load time with the performance governor and compares the used time for same calculations done with the configured powersave governor

Parameters
configconfig values for the benchmark

Definition at line 91 of file benchmark.c.