Re: [PATCH] openrisc: use device tree to determine present cpus

2021-01-31 Thread Stafford Horne
On Sun, Jan 31, 2021 at 09:22:31AM +0100, Jan Henrik Weinstock wrote: > On 31/01/2021 00:03, Stafford Horne wrote: > > > This looks good, one small comment below. Can you send the next patch as a > > v2? > > > > Using 'git format-patch -v2 ...' > > Sorry, was not aware of that, will do better

Re: [PATCH] openrisc: use device tree to determine present cpus

2021-01-31 Thread Jan Henrik Weinstock
On 31/01/2021 00:03, Stafford Horne wrote: This looks good, one small comment below. Can you send the next patch as a v2? Using 'git format-patch -v2 ...' Sorry, was not aware of that, will do better next time! Should we warn on the else case? I think it is fine for the kernel to have ro

Re: [PATCH] openrisc: use device tree to determine present cpus

2021-01-30 Thread Stafford Horne
Sorry, Please disrecard the g...@lianli.shorne-pla.net address in the mail distribution list. I must have it a incorrect button. -Stafford

Re: [PATCH] openrisc: use device tree to determine present cpus

2021-01-30 Thread Stafford Horne
On Sat, Jan 30, 2021 at 12:00:10PM +0100, Jan Henrik Weinstock wrote: > Hi Stafford, Geert, > > thanks for your feedback. I have made the following changes to the patch: Hi, Thanks for the updates. > 1. use for_each_of_cpu_node > 2. possible_cpus is now what is in the devicetree, up to NR_CPUS >

Re: [PATCH] openrisc: use device tree to determine present cpus

2021-01-30 Thread Jan Henrik Weinstock
Hi Stafford, Geert, thanks for your feedback. I have made the following changes to the patch: 1. use for_each_of_cpu_node 2. possible_cpus is now what is in the devicetree, up to NR_CPUS 3. present_cpus is now all possible cpus, up to max_cpus Signed-off-by: Jan Henrik Weinstock --- arch/open

Re: [PATCH] openrisc: use device tree to determine present cpus

2021-01-30 Thread Geert Uytterhoeven
Hi Jan, On Fri, Jan 29, 2021 at 7:34 PM Jan Henrik Weinstock wrote: > This patch proposes to use the device tree to determine the present cpus > instead of assuming all CONFIG_NRCPUS are actually present in the system. > > Signed-off-by: Jan Henrik Weinstock Thanks for your patch! > --- a/arch

Re: [PATCH] openrisc: use device tree to determine present cpus

2021-01-29 Thread Stafford Horne
On Fri, Jan 29, 2021 at 07:29:31PM +0100, Jan Henrik Weinstock wrote: > This patch proposes to use the device tree to determine the present cpus > instead of assuming all CONFIG_NRCPUS are actually present in the system. > > Signed-off-by: Jan Henrik Weinstock > --- > arch/openrisc/kernel/smp.c

[PATCH] openrisc: use device tree to determine present cpus

2021-01-29 Thread Jan Henrik Weinstock
This patch proposes to use the device tree to determine the present cpus instead of assuming all CONFIG_NRCPUS are actually present in the system. Signed-off-by: Jan Henrik Weinstock --- arch/openrisc/kernel/smp.c | 18 +++--- 1 file changed, 15 insertions(+), 3 deletions(-) diff