arch_topology: Localize cap_parsing_failed to topology_parse_cpu_capacity()
authorViresh Kumar <viresh.kumar@linaro.org>
Fri, 23 Jun 2017 09:25:33 +0000 (14:55 +0530)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 17 Jul 2017 15:32:05 +0000 (17:32 +0200)
commit62de1161e220bc6ded7806ef0d149560f06152b3
tree7464f3c8901afc0f63ffdeab27156ec0a4d03d6b
parent805df2966f67a6b1a228c8e580e230b6c849b41e
arch_topology: Localize cap_parsing_failed to topology_parse_cpu_capacity()

cap_parsing_failed is only required in topology_parse_cpu_capacity() to
know if we have already tried to allocate raw_capacity and failed, or if
at least one of the cpu_node didn't had the required
"capacity-dmips-mhz" property.

All other users can use raw_capacity instead of cap_parsing_failed.

Make sure we set raw_capacity to NULL after we free it.

Signed-off-by: Viresh Kumar <viresh.kumar@linaro.org>
Reviewed-by: Juri Lelli <juri.lelli@arm.com>
Tested-by: Juri Lelli <juri.lelli@arm.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/base/arch_topology.c