Files
threeeye bc1d038eac REVVL 6 Pro kernel bring-up: full working tree snapshot (2026-09-12)
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)
2026-09-12 13:36:46 +00:00

48 lines
1.5 KiB
C

/*
* Copyright (C) 2018 MediaTek Inc.
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License version 2 as
* published by the Free Software Foundation.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
* See http://www.gnu.org/licenses/gpl-2.0.html for more details.
*/
#ifdef CONFIG_MTK_SCHED_BOOST
/* For multi-scheduling boost support */
enum {
SCHED_NO_BOOST = 0,
SCHED_ALL_BOOST,
SCHED_FG_BOOST,
SCHED_UNKNOWN_BOOST
};
#define SCHED_PREFER_NONE 0
#define SCHED_PREFER_BIG 1
#define SCHED_PREFER_LITTLE 2
#define SCHED_PREFER_END 3
extern void set_user_space_global_cpuset
(struct cpumask *global_cpus, int cgroup_id);
extern void unset_user_space_global_cpuset(int cgroup_id);
extern int sched_scheduler_switch(enum SCHED_LB_TYPE new_sched);
#endif
#ifdef CONFIG_SCHED_TUNE
extern int schedtune_task_boost(struct task_struct *tsk);
#else
#define schedtune_task_boost(tsk) 0
#endif
extern unsigned int hmp_cpu_is_slowest(int cpu);
extern unsigned int hmp_cpu_is_fastest(int cpu);
extern bool is_intra_domain(int prev, int target);
extern unsigned long capacity_spare_without(int cpu, struct task_struct *p);
#ifdef CONFIG_MACH_MT6873
extern unsigned long cpu_util_without(int cpu, struct task_struct *p);
extern unsigned long task_util_est(struct task_struct *p);
#endif