Prev: [PATCH] tracing/documentation: document dynamic ftracer internals
Next: v3 Update the find_memory_block declaration
From: KAMEZAWA Hiroyuki on 20 Jul 2010 03:30 On Mon, 19 Jul 2010 22:57:35 -0500 Nathan Fontenot <nfont(a)austin.ibm.com> wrote: > Update the node sysfs code to be aware of the new capability for a memory > block to contain multiple memory sections. This requires an additional > parameter to unregister_mem_sect_under_nodes so that we know which memory > section of the memory block to unregister. > > Signed-off-by: Nathan Fontenot <nfont(a)austin.ibm.com> Acked-by: KAMEZAWA Hiroyuki <kamezawa.hiroyu(a)jp.fujitsu.com> -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo(a)vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/
From: Brian King on 28 Jul 2010 10:00
On 07/19/2010 10:57 PM, Nathan Fontenot wrote: > Index: linux-2.6/include/linux/node.h > =================================================================== > --- linux-2.6.orig/include/linux/node.h 2010-07-19 21:10:25.000000000 -0500 > +++ linux-2.6/include/linux/node.h 2010-07-19 21:13:11.000000000 -0500 > @@ -44,7 +44,8 @@ extern int register_cpu_under_node(unsig > extern int unregister_cpu_under_node(unsigned int cpu, unsigned int nid); > extern int register_mem_sect_under_node(struct memory_block *mem_blk, > int nid); > -extern int unregister_mem_sect_under_nodes(struct memory_block *mem_blk); > +extern int unregister_mem_sect_under_nodes(struct memory_block *mem_blk, > + unsigned long phys_index); You also need to update the inline definition of unregister_mem_sect_under_nodes for the !CONFIG_NUMA case. -Brian -- Brian King Linux on Power Virtualization IBM Linux Technology Center -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo(a)vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/ |