Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 960f02c7 authored by Greg Hackmann's avatar Greg Hackmann
Browse files

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: default avatarGreg Hackmann <ghackmann@google.com>
parent ccdfb790
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -4710,7 +4710,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);
+1 −1
Original line number Diff line number Diff line
@@ -844,7 +844,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.