[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <13934660-2138-489A-A87E-A6AA222F6218@flygoat.com>
Date: Wed, 20 May 2020 20:32:01 +0800
From: Jiaxun Yang <jiaxun.yang@...goat.com>
To: Paul Cercueil <paul@...pouillou.net>,
Zhou Yanjie <zhouyanjie@...yeetech.com>
CC: linux-mips@...r.kernel.org, linux-kernel@...r.kernel.org,
devicetree@...r.kernel.org, tsbogend@...ha.franken.de,
paulburton@...nel.org, chenhc@...ote.com, tglx@...utronix.de,
robh+dt@...nel.org, daniel.lezcano@...aro.org,
keescook@...omium.org, krzk@...nel.org, hns@...delico.com,
ebiederm@...ssion.com, dongsheng.qiu@...enic.com,
yanfei.li@...enic.com, rick.tyliu@...enic.com,
sernia.zhou@...mail.com, zhenwenjin@...il.com
Subject: Re: [PATCH v8 1/6] MIPS: JZ4780: Introduce SMP support.
于 2020年5月20日 GMT+08:00 下午7:33:22, Paul Cercueil <paul@...pouillou.net> 写到:
>>
>> Yes, the current way is indeed a little problem, it will cause
>> num_possible_cpus() == NR_CPUS, I will try to find a better way.
>
>You can do:
>
>for_each_of_cpu_node(cpu_node) {
> cpu = of_cpu_node_to_id(cpu_node);
> __cpu_number_map[cpu] = cpu;
> __cpu_logical_map[cpu] = cpu;
> set_cpu_possible(cpu, true);
>}
>
FYI: There is a abandoned DeviceTree[1], parser. You can take it.
I'm going to submit this topology clean-up for next release cycle
but you can pick it for now.
[...]
[1]: https://lkml.org/lkml/2020/4/11/1088
--
Jiaxun Yang
Powered by blists - more mailing lists