Re: [PATCH 5/5] riscv: use for_each_of_cpu_node iterator

2019-02-12 Thread Atish Patra
On 2/12/19 12:53 AM, Johan Hovold wrote: On Tue, Feb 12, 2019 at 12:47:09AM -0800, Atish Patra wrote: On 2/12/19 12:26 AM, Johan Hovold wrote: On Mon, Feb 11, 2019 at 11:13:39PM -0800, Christoph Hellwig wrote: On Fri, Jan 18, 2019 at 03:03:08PM +0100, Johan Hovold wrote: Use the new for_each_

Re: [PATCH 5/5] riscv: use for_each_of_cpu_node iterator

2019-02-12 Thread Johan Hovold
On Tue, Feb 12, 2019 at 12:47:09AM -0800, Atish Patra wrote: > On 2/12/19 12:26 AM, Johan Hovold wrote: > > On Mon, Feb 11, 2019 at 11:13:39PM -0800, Christoph Hellwig wrote: > >> On Fri, Jan 18, 2019 at 03:03:08PM +0100, Johan Hovold wrote: > >>> Use the new for_each_of_cpu_node() helper to iterat

Re: [PATCH 5/5] riscv: use for_each_of_cpu_node iterator

2019-02-12 Thread Atish Patra
On 2/12/19 12:26 AM, Johan Hovold wrote: On Mon, Feb 11, 2019 at 11:13:39PM -0800, Christoph Hellwig wrote: On Fri, Jan 18, 2019 at 03:03:08PM +0100, Johan Hovold wrote: Use the new for_each_of_cpu_node() helper to iterate over cpu nodes instead of open coding. Note that this will allow matchin

Re: [PATCH 5/5] riscv: use for_each_of_cpu_node iterator

2019-02-12 Thread Johan Hovold
On Mon, Feb 11, 2019 at 11:13:39PM -0800, Christoph Hellwig wrote: > On Fri, Jan 18, 2019 at 03:03:08PM +0100, Johan Hovold wrote: > > Use the new for_each_of_cpu_node() helper to iterate over cpu nodes > > instead of open coding. Note that this will allow matching also on the > > node name instead

Re: [PATCH 5/5] riscv: use for_each_of_cpu_node iterator

2019-02-11 Thread Christoph Hellwig
On Fri, Jan 18, 2019 at 03:03:08PM +0100, Johan Hovold wrote: > Use the new for_each_of_cpu_node() helper to iterate over cpu nodes > instead of open coding. Note that this will allow matching also on the > node name instead of the (for FDT) deprecated device_type property. > > Signed-off-by: Joha

[PATCH 5/5] riscv: use for_each_of_cpu_node iterator

2019-01-18 Thread Johan Hovold
Use the new for_each_of_cpu_node() helper to iterate over cpu nodes instead of open coding. Note that this will allow matching also on the node name instead of the (for FDT) deprecated device_type property. Signed-off-by: Johan Hovold --- arch/riscv/kernel/cpufeature.c | 5 +++-- arch/riscv/kern