mirror of
https://github.com/hardkernel/linux.git
synced 2026-06-08 11:50:43 +09:00
ANDROID: sched: fix duplicate sched_group_energy const specifiers
EAS uses "const struct sched_group_energy * const" fairly consistently. But a couple of places swap the "*" and second "const", making the pointer mutable. In the case of struct sched_group, "* const" would have been an error, since init_sched_energy() writes to sd->groups->sge. Change-Id: Ic6a8fcf99e65c0f25d9cc55c32625ef3ca5c9aca Signed-off-by: Greg Hackmann <ghackmann@google.com>
This commit is contained in:
@@ -5313,7 +5313,7 @@ long group_norm_util(struct energy_env *eenv, struct sched_group *sg)
|
||||
}
|
||||
|
||||
static int find_new_capacity(struct energy_env *eenv,
|
||||
const struct sched_group_energy const *sge)
|
||||
const struct sched_group_energy * const sge)
|
||||
{
|
||||
int idx;
|
||||
unsigned long util = group_max_util(eenv);
|
||||
|
||||
@@ -956,7 +956,7 @@ struct sched_group {
|
||||
|
||||
unsigned int group_weight;
|
||||
struct sched_group_capacity *sgc;
|
||||
const struct sched_group_energy const *sge;
|
||||
const struct sched_group_energy *sge;
|
||||
|
||||
/*
|
||||
* The CPUs this group covers.
|
||||
|
||||
Reference in New Issue
Block a user