OSDN Git Service

ANDROID: drivers base/arch_topology: Detect SD_SHARE_CAP_STATES flag
authorMorten Rasmussen <morten.rasmussen@arm.com>
Wed, 20 Sep 2017 12:25:22 +0000 (13:25 +0100)
committerChris Redpath <chris.redpath@arm.com>
Tue, 19 Dec 2017 13:25:46 +0000 (13:25 +0000)
commit15bd7f1515654af4cce89d6d36dd1fbba6c133fa
tree843015c0c66c41619c144da107cd00c2debef767
parent73e184bc16c87eebb99c6b62da7e94ccd26af491
ANDROID: drivers base/arch_topology: Detect SD_SHARE_CAP_STATES flag

Detect and set the SD_SHARE_CAP_STATES sched_domain flag automatically
based on the cpufreq policy related_cpus mask. Since the sched_domain
flags functions don't take any parameters we have to assume that flags
are the same for sched_domains are the same level, i.e. platforms mixing
per-core and per-cluster DVFS is not supported.

cc: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: Morten Rasmussen <morten.rasmussen@arm.com>
Change-Id: I041d01fd5a8f9abb08fbff727efceea5ddeaa03b
Signed-off-by: Chris Redpath <chris.redpath@arm.com>
drivers/base/arch_topology.c