2019-05-27 14:55:05 +08:00
|
|
|
/* SPDX-License-Identifier: GPL-2.0-or-later */
|
2011-03-30 22:30:11 +08:00
|
|
|
/* cpufreq-bench CPUFreq microbenchmark
|
|
|
|
*
|
|
|
|
* Copyright (C) 2008 Christian Kornacker <ckornacker@suse.de>
|
|
|
|
*/
|
|
|
|
|
|
|
|
/* initial loop count for the load calibration */
|
|
|
|
#define GAUGECOUNT 1500
|
|
|
|
|
|
|
|
/* default scheduling policy SCHED_OTHER */
|
|
|
|
#define SCHEDULER SCHED_OTHER
|
|
|
|
|
|
|
|
#define PRIORITY_DEFAULT 0
|
|
|
|
#define PRIORITY_HIGH sched_get_priority_max(SCHEDULER)
|
|
|
|
#define PRIORITY_LOW sched_get_priority_min(SCHEDULER)
|
|
|
|
|
|
|
|
/* enable further debug messages */
|
|
|
|
#ifdef DEBUG
|
|
|
|
#define dprintf printf
|
|
|
|
#else
|
2011-04-20 01:20:12 +08:00
|
|
|
#define dprintf(...) do { } while (0)
|
2011-03-30 22:30:11 +08:00
|
|
|
#endif
|
|
|
|
|