schedstats/eas: guard properly to avoid breaking non-smp schedstats users
authorChris Redpath <chris.redpath@arm.com>
Sat, 3 Jun 2017 14:03:03 +0000 (15:03 +0100)
committerAmit Pundir <amit.pundir@linaro.org>
Wed, 21 Jun 2017 11:07:49 +0000 (16:37 +0530)
commit3e6776b1300a77b001645bfc1c7813b48dc55e14
tree4eac499b76064d7a5aaf31efa45c14a6a290e40e
parent2e320352b82fa3bb3c24adf1098be09c8724e0a3
schedstats/eas: guard properly to avoid breaking non-smp schedstats users

Add appropriate #ifdef guards to ensure the smp-only easstats structs
are not used when smp is not enabled. Arnd got a report from buildbot,
analysed it, and pointed out exactly what the issue was.

Reported-by: "Arnd Bergmann" <arnd@arndb.de>
Suggested-by: "Arnd Bergmann" <arnd@arndb.de>
Fixes: 4b85765a3dd9 ("sched/fair: Add eas (& cas)
 specific rq, sd and task stats")
Signed-off-by: Chris Redpath <chris.redpath@arm.com>
Change-Id: I60554dea20137f6774db3f59b4afd40a06554cfc
kernel/sched/sched.h
kernel/sched/stats.c