diff options
author | Juri Lelli <juri.lelli@arm.com> | 2017-05-31 19:59:29 +0300 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2017-06-03 13:10:09 +0300 |
commit | c105aa31183a6ebec395681b6df47c8b65259322 (patch) | |
tree | 51c01fc11803e358921e77e1f8e1214a8130142d /include/linux/arch_topology.h | |
parent | 2ef7a2953c81ee6b341e3ffb33570adc894cf4a5 (diff) | |
download | linux-c105aa31183a6ebec395681b6df47c8b65259322.tar.xz |
arm,arm64,drivers: reduce scope of cap_parsing_failed
Reduce the scope of cap_parsing_failed (making it static in
drivers/base/arch_topology.c) by slightly changing {arm,arm64} DT
parsing code.
For arm checking for !cap_parsing_failed before calling normalize_
cpu_capacity() is superfluous, as returning an error from parse_
cpu_capacity() (above) means cap_from _dt is set to false.
For arm64 we can simply check if raw_capacity points to something,
which is not if capacity parsing has failed.
Suggested-by: Morten Rasmussen <morten.rasmussen@arm.com>
Signed-off-by: Juri Lelli <juri.lelli@arm.com>
Acked-by: Russell King <rmk+kernel@armlinux.org.uk>
Acked-by: Catalin Marinas <catalin.marinas@arm.com>
Acked-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'include/linux/arch_topology.h')
0 files changed, 0 insertions, 0 deletions