• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 
2 #ifdef CONFIG_SCHED_TUNE
3 
4 #include <linux/reciprocal_div.h>
5 
6 /*
7  * System energy normalization constants
8  */
9 struct target_nrg {
10 	unsigned long min_power;
11 	unsigned long max_power;
12 	struct reciprocal_value rdiv;
13 };
14 
15 int schedtune_cpu_boost(int cpu);
16 int schedtune_task_boost(struct task_struct *tsk);
17 
18 int schedtune_prefer_idle(struct task_struct *tsk);
19 
20 void schedtune_enqueue_task(struct task_struct *p, int cpu);
21 void 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 */
34