ANDROID: sched: Export symbols needed for vendor hooks

Bug: 297343949
Change-Id: I0cb65e85b36687bfaae6a185ca373d7fb8de0a77
Signed-off-by: Rick Yiu <rickyiu@google.com>
This commit is contained in:
Rick Yiu 2023-08-28 07:08:54 +00:00 committed by Treehugger Robot
parent 84131c988b
commit eb9686932b
3 changed files with 6 additions and 2 deletions

View File

@ -2588,6 +2588,7 @@ int push_cpu_stop(void *arg)
put_task_struct(p);
return 0;
}
EXPORT_SYMBOL_GPL(push_cpu_stop);
/*
* sched_class::set_cpus_allowed must do the below, but is not required to

View File

@ -3350,6 +3350,7 @@ void reweight_task(struct task_struct *p, int prio)
reweight_entity(cfs_rq, se, weight);
load->inv_weight = sched_prio_to_wmult[prio];
}
EXPORT_SYMBOL_GPL(reweight_task);
static inline int throttled_hierarchy(struct cfs_rq *cfs_rq);

View File

@ -176,7 +176,7 @@ accumulate_sum(u64 delta, struct sched_avg *sa,
* load_avg = u_0` + y*(u_0 + u_1*y + u_2*y^2 + ... )
* = u_0 + u_1*y + u_2*y^2 + ... [re-labeling u_i --> u_{i+1}]
*/
static __always_inline int
int
___update_load_sum(u64 now, struct sched_avg *sa,
unsigned long load, unsigned long runnable, int running)
{
@ -228,6 +228,7 @@ ___update_load_sum(u64 now, struct sched_avg *sa,
return 1;
}
EXPORT_SYMBOL_GPL(___update_load_sum);
/*
* When syncing *_avg with *_sum, we must take into account the current
@ -253,7 +254,7 @@ ___update_load_sum(u64 now, struct sched_avg *sa,
* the period_contrib of cfs_rq when updating the sched_avg of a sched_entity
* if it's more convenient.
*/
static __always_inline void
void
___update_load_avg(struct sched_avg *sa, unsigned long load)
{
u32 divider = get_pelt_divider(sa);
@ -265,6 +266,7 @@ ___update_load_avg(struct sched_avg *sa, unsigned long load)
sa->runnable_avg = div_u64(sa->runnable_sum, divider);
WRITE_ONCE(sa->util_avg, sa->util_sum / divider);
}
EXPORT_SYMBOL_GPL(___update_load_avg);
/*
* sched_entity: