arm and arm64 topology.c share a lot of code related to parsing of capacityinformation. This is v4 of a solution [1] (based on Will's, Catalin's andMark's off-line suggestions) to move such common code in a single place:drivers/base/arch_topology.c (by creating such file and conditionally compilingit for arm and arm64 only).

First 4 patches are actually fixes for the current code.

Patch 5 is the actual refactoring.

Patch 6 removes one of the extern symbols by changing a bit the now commoncode.

Patch 7 removes the remaining externs (as required by Russell during v1 review)by creating a new header file include/linux/arch_topology.h and including thatfrom arm, arm64 and drivers.

Last patch addresses Dietmar's comments to v1 and adds a 'atd_' prefix tointerfaces exported by drivers code and used by arch (and potentially others inthe future).