Re: [PATCH v5 07/11] ARM: imx: add msl support for imx7d

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 




On Tue, Apr 21, 2015 at 1:51 PM, Zhi Li <lznuaa@xxxxxxxxx> wrote:
> On Tue, Apr 21, 2015 at 12:31 PM, Mark Rutland <mark.rutland@xxxxxxx> wrote:
>>> +static void __init imx_ca7_smp_init_cpus(void)
>>> +{
>>> +       int i, ncores;
>>> +       unsigned long val;
>>> +
>>> +       asm volatile("mrc p15, 1, %0, c9, c0, 2" : "=r" (val));
>>> +       ncores = ((val >> 24) & 0x3) + 1;
>>> +       if (setup_max_cpus < ncores)
>>> +               ncores = (setup_max_cpus) ? setup_max_cpus : 1;
>>> +
>>> +       for (i = ncores; i < NR_CPUS; i++)
>>> +               set_cpu_possible(i, false);
>>> +}
>>
>> NAK.
>>
>> The set of available CPUs should come from the DT, as with other
>> platforms.
>
> Can you give me a reference platform implement?

All of the ones with no smp_operations.

Rob
--
To unsubscribe from this list: send the line "unsubscribe devicetree" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html




[Index of Archives]     [Device Tree Compilter]     [Device Tree Spec]     [Linux Driver Backports]     [Video for Linux]     [Linux USB Devel]     [Linux PCI Devel]     [Linux Audio Users]     [Linux Kernel]     [Linux SCSI]     [XFree86]     [Yosemite Backpacking]
  Powered by Linux