ANDROID: sched/pelt: export ___update_load_[sum|avg]
[Partial revert of commit8c09081fc0] These symbols are used as part of the pixel scheduler vendor hook driver. They were removed in commit8c09081fc0as part of removing unused vendor hooks. Bug: 227767048 Change-Id: I8f1914b3f0522a5d312667134a155d463fa40a7e Signed-off-by: Will McVicker <willmcvicker@google.com>
This commit is contained in:
committed by
William McVicker
parent
85aa38928c
commit
ed6f0796dd
@@ -180,8 +180,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
|
||||
___update_load_sum(u64 now, struct sched_avg *sa,
|
||||
int ___update_load_sum(u64 now, struct sched_avg *sa,
|
||||
unsigned long load, unsigned long runnable, int running)
|
||||
{
|
||||
u64 delta;
|
||||
@@ -232,6 +231,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
|
||||
@@ -257,8 +257,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
|
||||
___update_load_avg(struct sched_avg *sa, unsigned long load)
|
||||
void ___update_load_avg(struct sched_avg *sa, unsigned long load)
|
||||
{
|
||||
u32 divider = get_pelt_divider(sa);
|
||||
|
||||
@@ -269,6 +268,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:
|
||||
|
||||
Reference in New Issue
Block a user