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)
committerAmit Pundir <amit.pundir@linaro.org>
Mon, 10 Apr 2017 07:42:16 +0000 (13:12 +0530)
commiteddcde3031dd40ec6f881a4b87a80f17b7239dd5
tree103213364310701dbee2ff070ee89a906843ea51
parent1c634ee26be129b8f35dee320d5f77e2fe6e029a
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