]> git.proxmox.com Git - mirror_ubuntu-zesty-kernel.git/commit
drivers: base: cacheinfo: support DT overrides for cache properties
authorSudeep Holla <sudeep.holla@arm.com>
Fri, 28 Oct 2016 08:45:31 +0000 (09:45 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 10 Nov 2016 16:30:53 +0000 (17:30 +0100)
commitdfea747d2aba77443acf7ce6fa37caa729bd034c
treeb58072f13d4eaef5d2e1ae98840725a065a2a9a3
parent8e1073b1ffff5a90c1af75862309c5ed87ef545c
drivers: base: cacheinfo: support DT overrides for cache properties

Few architectures like x86, ia64 and s390 derive the cache topology and
all the properties using a specific architected mechanism while some
other architectures like powerpc all those information id derived from
the device tree.

On ARM, both the mechanism is used. While all the cache properties can
be derived in a architected way, it needs to rely on device tree to get
the cache topology information.

However there are few platforms where this architected mechanism is
broken and the device tree properties can be used to override these
incorrect values.

This patch adds support for overriding the cache properties values to
the values specified in the device tree.

Cc: Alex Van Brunt <avanbrunt@nvidia.com>
Cc: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: Sudeep Holla <sudeep.holla@arm.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/base/cacheinfo.c