1 /* SPDX-License-Identifier: GPL-2.0-or-later * 1 /* SPDX-License-Identifier: GPL-2.0-or-later */ 2 /* cpufreq-bench CPUFreq microbenchmark 2 /* cpufreq-bench CPUFreq microbenchmark 3 * 3 * 4 * Copyright (C) 2008 Christian Kornacker <ck 4 * Copyright (C) 2008 Christian Kornacker <ckornacker@suse.de> 5 */ 5 */ 6 6 7 /* initial loop count for the load calibration 7 /* initial loop count for the load calibration */ 8 #define GAUGECOUNT 1500 8 #define GAUGECOUNT 1500 9 9 10 /* default scheduling policy SCHED_OTHER */ 10 /* default scheduling policy SCHED_OTHER */ 11 #define SCHEDULER SCHED_OTHER 11 #define SCHEDULER SCHED_OTHER 12 12 13 #define PRIORITY_DEFAULT 0 13 #define PRIORITY_DEFAULT 0 14 #define PRIORITY_HIGH sched_get_priority_ma 14 #define PRIORITY_HIGH sched_get_priority_max(SCHEDULER) 15 #define PRIORITY_LOW sched_get_priority_mi 15 #define PRIORITY_LOW sched_get_priority_min(SCHEDULER) 16 16 17 /* enable further debug messages */ 17 /* enable further debug messages */ 18 #ifdef DEBUG 18 #ifdef DEBUG 19 #define dprintf printf 19 #define dprintf printf 20 #else 20 #else 21 #define dprintf(...) do { } while (0) 21 #define dprintf(...) do { } while (0) 22 #endif 22 #endif 23 23 24 24
Linux® is a registered trademark of Linus Torvalds in the United States and other countries.
TOMOYO® is a registered trademark of NTT DATA CORPORATION.