Thread (26 messages) 26 messages, 4 authors, 2017-05-30

[PATCH v4 6/8] arm,arm64,drivers: reduce scope of cap_parsing_failed

From: gregkh@linuxfoundation.org (Greg KH)
Date: 2017-05-25 13:13:26
Also in: linux-devicetree, linux-pm, lkml

On Thu, Apr 20, 2017 at 03:43:14PM +0100, Juri Lelli wrote:
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 <redacted>
Signed-off-by: Juri Lelli <redacted>
Acked-by: Russell King <redacted>
Acked-by: Catalin Marinas <catalin.marinas@arm.com>

Acked-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help