Hi,

this patch needs the fix below, since platforms can boot without a
cpu-map.

On 19/07/16 13:40, Juri Lelli wrote:
[...]
> @@ -185,6 +328,8 @@ static int __init parse_dt_topology(void)
>       if (ret != 0)
>               goto out_map;
>  
> +     normalize_cpu_capacity();
> +
>       /*
>        * Check that all cores are in the topology; the SMP code will
>        * only mark cores described in the DT as possible.
> -- 

--->8---
 arch/arm64/kernel/topology.c | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/arch/arm64/kernel/topology.c b/arch/arm64/kernel/topology.c
index 56bbd6d41daf..288f511a5f29 100644
--- a/arch/arm64/kernel/topology.c
+++ b/arch/arm64/kernel/topology.c
@@ -394,8 +394,10 @@ static int __init parse_dt_topology(void)
         * cluster with restricted subnodes.
         */
        map = of_get_child_by_name(cn, "cpu-map");
-       if (!map)
+       if (!map) {
+               cap_parsing_failed = true;
                goto out;
+       }
 
        ret = parse_cluster(map, 0);
        if (ret != 0)
-- 
2.7.0

Reply via email to