xref: /linux/tools/power/cpupower/bench/config.h (revision b8d312aa075f33282565467662c4628dae0a2aff)
1 /* SPDX-License-Identifier: GPL-2.0-or-later */
2 /*  cpufreq-bench CPUFreq microbenchmark
3  *
4  *  Copyright (C) 2008 Christian Kornacker <ckornacker@suse.de>
5  */
6 
7 /* initial loop count for the load calibration */
8 #define GAUGECOUNT	1500
9 
10 /* default scheduling policy SCHED_OTHER */
11 #define SCHEDULER	SCHED_OTHER
12 
13 #define PRIORITY_DEFAULT 0
14 #define PRIORITY_HIGH	 sched_get_priority_max(SCHEDULER)
15 #define PRIORITY_LOW	 sched_get_priority_min(SCHEDULER)
16 
17 /* enable further debug messages */
18 #ifdef DEBUG
19 #define dprintf printf
20 #else
21 #define dprintf(...) do { } while (0)
22 #endif
23 
24