Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1229908

Re: [PATCH V2 2/2] powerpc:numa Do not allocate bootmem memory for non existing nodes

From Michael Ellerman <mpe@ellerman.id.au>
Newsgroups linux.kernel
Subject Re: [PATCH V2 2/2] powerpc:numa Do not allocate bootmem memory for non existing nodes
Date 2015-09-22 07:30 +0200
Message-ID <qbojn-4l9-7@gated-at.bofh.it> (permalink)
References <q8NQZ-7HD-3@gated-at.bofh.it> <q8NQZ-7HD-7@gated-at.bofh.it>
Organization linux.* mail to news gateway

Show all headers | View raw


On Tue, 2015-09-15 at 07:38 +0530, Raghavendra K T wrote:
>
> ... nothing

Sure this patch looks obvious, but please give me a changelog that proves
you've thought about it thoroughly.

For example is it OK to use for_each_node() at this point in boot? Is there any
historical reason why we did it with a hard coded loop? If so what has changed.
What systems have you tested on? etc. etc.

cheers

> Signed-off-by: Raghavendra K T <raghavendra.kt@linux.vnet.ibm.com>
> ---
>  arch/powerpc/mm/numa.c | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/arch/powerpc/mm/numa.c b/arch/powerpc/mm/numa.c
> index 8b9502a..8d8a541 100644
> --- a/arch/powerpc/mm/numa.c
> +++ b/arch/powerpc/mm/numa.c
> @@ -80,7 +80,7 @@ static void __init setup_node_to_cpumask_map(void)
>  		setup_nr_node_ids();
>  
>  	/* allocate the map */
> -	for (node = 0; node < nr_node_ids; node++)
> +	for_each_node(node)
>  		alloc_bootmem_cpumask_var(&node_to_cpumask_map[node]);
>  
>  	/* cpumask_of_node() will now work */




--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

Back to linux.kernel | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread


Thread

[PATCH V2  2/2] powerpc:numa Do not allocate bootmem memory for non existing nodes Raghavendra K T <raghavendra.kt@linux.vnet.ibm.com> - 2015-09-15 04:10 +0200
  Re: [PATCH V2  2/2] powerpc:numa Do not allocate bootmem memory for  non existing nodes Michael Ellerman <mpe@ellerman.id.au> - 2015-09-22 07:30 +0200
    Re: [PATCH V2  2/2] powerpc:numa Do not allocate bootmem memory for  non existing nodes Raghavendra K T <raghavendra.kt@linux.vnet.ibm.com> - 2015-09-22 12:50 +0200
    Re: [PATCH V2  2/2] powerpc:numa Do not allocate bootmem memory for  non existing nodes Raghavendra K T <raghavendra.kt@linux.vnet.ibm.com> - 2015-09-22 21:40 +0200

csiph-web