Squashed backup commit (no shallow-clone history issues) of xiaomi-mt6833-dev/kernel_xiaomi_mt6833 (lineage-23.2 branch, upstream commit 9eece662e) plus all fixes applied to get everpal_defconfig building clean against a modern (GCC 15.2.0) toolchain -- see the previous commit message on the lineage-23.2 branch (also in this repo history is not available here since this is a squashed snapshot; full incremental history lives in the local DL380 checkout and the upstream GitHub remote). Upstream: https://github.com/xiaomi-mt6833-dev/kernel_xiaomi_mt6833 (lineage-23.2)
48 lines
1.3 KiB
C
48 lines
1.3 KiB
C
|
|
#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(int cpu);
|
|
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);
|
|
extern int stune_task_threshold;
|
|
|
|
#ifdef CONFIG_UCLAMP_TASK_GROUP
|
|
extern struct mutex uclamp_mutex;
|
|
extern int opp_capacity_tbl_ready;
|
|
extern void init_opp_capacity_tbl(void);
|
|
extern unsigned int find_fit_capacity(unsigned int cap);
|
|
extern void uclamp_group_get(struct task_struct *p,
|
|
struct cgroup_subsys_state *css,
|
|
struct uclamp_se *uc_se,
|
|
unsigned int clamp_id, unsigned int clamp_value);
|
|
extern void uclamp_group_put(unsigned int clamp_id, unsigned int group_id);
|
|
#endif
|
|
|
|
#else /* CONFIG_SCHED_TUNE */
|
|
|
|
#define schedtune_cpu_boost(cpu) 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)
|
|
#define stune_task_threshold 0
|
|
|
|
#endif /* CONFIG_SCHED_TUNE */
|