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:
Greg Hackmann 2017-03-07 10:37:56 -08:00
parent 2474d8bad0
commit a5e2a1ddbc
2 changed files with 2 additions and 2 deletions

View file

@ -4919,7 +4919,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);

View file

@ -915,7 +915,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.