David Brazdil | 0f672f6 | 2019-12-10 10:32:29 +0000 | [diff] [blame^] | 1 | /* SPDX-License-Identifier: GPL-2.0-or-later */ |
Andrew Scull | b4b6d4a | 2019-01-02 15:54:55 +0000 | [diff] [blame] | 2 | /* cpufreq-bench CPUFreq microbenchmark |
| 3 | * |
| 4 | * Copyright (C) 2008 Christian Kornacker <ckornacker@suse.de> |
Andrew Scull | b4b6d4a | 2019-01-02 15:54:55 +0000 | [diff] [blame] | 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 | |