2017-10-21 19:07:35 +02:00
|
|
|
|
|
|
|
#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;
|
|
|
|
};
|
|
|
|
|
2020-06-15 16:03:08 +02:00
|
|
|
int schedtune_cpu_boost_with(int cpu, struct task_struct *p);
|
2017-10-21 19:07:35 +02:00
|
|
|
int schedtune_task_boost(struct task_struct *tsk);
|
|
|
|
|
|
|
|
int schedtune_prefer_idle(struct task_struct *tsk);
|
2020-02-15 00:24:27 +01:00
|
|
|
bool schedtune_prefer_high_cap(struct task_struct *tsk);
|
2017-10-21 19:07:35 +02:00
|
|
|
|
|
|
|
void schedtune_enqueue_task(struct task_struct *p, int cpu);
|
|
|
|
void schedtune_dequeue_task(struct task_struct *p, int cpu);
|
|
|
|
|
|
|
|
#else /* CONFIG_SCHED_TUNE */
|
|
|
|
|
2020-07-02 16:21:55 +02:00
|
|
|
#define schedtune_cpu_boost_with(cpu, p) 0
|
2017-10-21 19:07:35 +02:00
|
|
|
#define schedtune_task_boost(tsk) 0
|
|
|
|
|
|
|
|
#define schedtune_prefer_idle(tsk) 0
|
2020-02-15 00:24:27 +01:00
|
|
|
#define schedtune_prefer_high_cap(tsk) 0
|
2017-10-21 19:07:35 +02:00
|
|
|
|
|
|
|
#define schedtune_enqueue_task(task, cpu) do { } while (0)
|
|
|
|
#define schedtune_dequeue_task(task, cpu) do { } while (0)
|
|
|
|
|
|
|
|
#endif /* CONFIG_SCHED_TUNE */
|