OSDN Git Service

ANDROID: sched: fix duplicate sched_group_energy const specifiers
authorGreg Hackmann <ghackmann@google.com>
Tue, 7 Mar 2017 18:37:56 +0000 (10:37 -0800)
committerGreg Hackmann <ghackmann@google.com>
Fri, 17 Mar 2017 16:26:10 +0000 (16:26 +0000)
commita5e2a1ddbc50f49135a381137fde4eaee12e5071
treecc0ef6bc4eee0dbe7b483d2ecce043f5f2b93ab8
parent2474d8bad0034d4c1143e10947c44a0d6b37dc92
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>
kernel/sched/fair.c
kernel/sched/sched.h