hc
2023-11-06 15ade055295d13f95d49e3d99b09f3bbfb4a43e7
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
 
#ifdef CONFIG_SCHED_TUNE
 
#include <linux/reciprocal_div.h>
 
/*
 * System energy normalization constants
 */
struct target_nrg {
   unsigned long min_power;
   unsigned long max_power;
   struct reciprocal_value rdiv;
};
 
int schedtune_cpu_boost_with(int cpu, struct task_struct *p);
int schedtune_task_boost(struct task_struct *tsk);
 
int schedtune_prefer_idle(struct task_struct *tsk);
 
void schedtune_enqueue_task(struct task_struct *p, int cpu);
void schedtune_dequeue_task(struct task_struct *p, int cpu);
 
#else /* CONFIG_SCHED_TUNE */
 
#define schedtune_cpu_boost_with(cpu, p)  0
#define schedtune_task_boost(tsk) 0
 
#define schedtune_prefer_idle(tsk) 0
 
#define schedtune_enqueue_task(task, cpu) do { } while (0)
#define schedtune_dequeue_task(task, cpu) do { } while (0)
 
#endif /* CONFIG_SCHED_TUNE */