[PATCH V2] powerpc/kernel: Add 'ibm, thread-groups' property for CPU allocation
Michael Ellerman
mpe at ellerman.id.au
Sat Jan 27 20:52:16 AEDT 2018
Michael Bringmann <mwb at linux.vnet.ibm.com> writes:
> diff --git a/arch/powerpc/kernel/prom.c b/arch/powerpc/kernel/prom.c
> index b15bae2..0a49231 100644
> --- a/arch/powerpc/kernel/prom.c
> +++ b/arch/powerpc/kernel/prom.c
> @@ -303,6 +306,71 @@ static void __init check_cpu_feature_properties(unsigned long node)
> }
> }
>
> +static void __init early_init_setup_thread_group_mask(unsigned long node,
> + cpumask_t *thread_group_mask)
> +{
> + const __be32 *thrgrp;
> + int len, rc = 0;
> + u32 cc_type = 0, no_split = 0, thr_per_split = 0;
> + int j, k;
> +
> + cpumask_clear(thread_group_mask);
> +
> + thrgrp = of_get_flat_dt_prop(node, "ibm,thread-groups", &len);
> + if (!thrgrp)
> + return;
This breaks booting on all my systems.
cheers
More information about the Linuxppc-dev
mailing list