blob: e79e1b1989219e8349239f56057e7cd3f4c439b4 [file] [log] [blame]
Patrick Bellasi159c14f2017-10-21 18:07:35 +01001
2#ifdef CONFIG_SCHED_TUNE
3
4#include <linux/reciprocal_div.h>
5
6/*
7 * System energy normalization constants
8 */
9struct target_nrg {
10 unsigned long min_power;
11 unsigned long max_power;
12 struct reciprocal_value rdiv;
13};
14
15int schedtune_cpu_boost(int cpu);
16int schedtune_task_boost(struct task_struct *tsk);
17
18int schedtune_prefer_idle(struct task_struct *tsk);
19
20void schedtune_enqueue_task(struct task_struct *p, int cpu);
21void schedtune_dequeue_task(struct task_struct *p, int cpu);
22
23#else /* CONFIG_SCHED_TUNE */
24
25#define schedtune_cpu_boost(cpu) 0
26#define schedtune_task_boost(tsk) 0
27
28#define schedtune_prefer_idle(tsk) 0
29
30#define schedtune_enqueue_task(task, cpu) do { } while (0)
31#define schedtune_dequeue_task(task, cpu) do { } while (0)
32
33#endif /* CONFIG_SCHED_TUNE */