The patch titled x86_64: export physnode mapping to userspace has been removed from the -mm tree. Its filename was x86_64-export-physnode-mapping-to-userspace.patch This patch was dropped because it was nacked by the maintainer ------------------------------------------------------ Subject: x86_64: export physnode mapping to userspace From: David Rientjes <rientjes@xxxxxxxxxx> Exports the physical NUMA node to fake NUMA node mapping to user-space via sysfs. The information is now accessible via the 'physnode' file. Cc: Andi Kleen <ak@xxxxxxx> Signed-off-by: Rohit Seth <rohitseth@xxxxxxxxxx> Signed-off-by: David Rientjes <rientjes@xxxxxxxxxx> Cc: Paul Jackson <pj@xxxxxxx> Cc: Christoph Lameter <clameter@xxxxxxxxxxxx> Signed-off-by: Andrew Morton <akpm@xxxxxxxxxxxxxxxxxxxx> --- drivers/base/node.c | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff -puN drivers/base/node.c~x86_64-export-physnode-mapping-to-userspace drivers/base/node.c --- a/drivers/base/node.c~x86_64-export-physnode-mapping-to-userspace +++ a/drivers/base/node.c @@ -131,6 +131,13 @@ static ssize_t node_read_distance(struct } static SYSDEV_ATTR(distance, S_IRUGO, node_read_distance, NULL); +#ifdef CONFIG_NUMA_EMU +static ssize_t node_read_physnode(struct sys_device *dev, char *buf) +{ + return sprintf(buf, "%d\n", get_phys_node(dev->id)); +} +static SYSDEV_ATTR(physnode, S_IRUGO, node_read_physnode, NULL); +#endif /* * register_node - Setup a sysfs device for a node. @@ -151,6 +158,9 @@ int register_node(struct node *node, int sysdev_create_file(&node->sysdev, &attr_meminfo); sysdev_create_file(&node->sysdev, &attr_numastat); sysdev_create_file(&node->sysdev, &attr_distance); +#ifdef CONFIG_NUMA_EMU + sysdev_create_file(&node->sysdev, &attr_physnode); +#endif } return error; } @@ -168,6 +178,9 @@ void unregister_node(struct node *node) sysdev_remove_file(&node->sysdev, &attr_meminfo); sysdev_remove_file(&node->sysdev, &attr_numastat); sysdev_remove_file(&node->sysdev, &attr_distance); +#ifdef CONFIG_NUMA_EMU + sysdev_remove_file(&node->sysdev, &attr_physnode); +#endif sysdev_unregister(&node->sysdev); } _ Patches currently in -mm which might be from rientjes@xxxxxxxxxx are x86_64-disable-alien-cache-for-fake-numa.patch x86_64-export-physnode-mapping-to-userspace.patch i386-add-ptep_test_and_clear_dirtyyoung.patch i386-use-pte_update_defer-in-ptep_test_and_clear_dirtyyoung.patch i386-use-pte_update_defer-in-ptep_test_and_clear_dirtyyoung-fix.patch smaps-extract-pmd-walker-from-smaps-code.patch smaps-add-pages-referenced-count-to-smaps.patch smaps-add-clear_refs-file-to-clear-reference.patch smaps-add-clear_refs-file-to-clear-reference-fix.patch smaps-add-clear_refs-file-to-clear-reference-fix-fix.patch smaps-add-clear_refs-file-to-clear-reference-fix-fix-2.patch smaps-add-clear_refs-file-to-clear-reference-cleanup.patch smaps-use-ptep_test_and_clear_young.patch smaps-add-clear_refs-file-to-clear-reference-docs.patch - To unsubscribe from this list: send the line "unsubscribe mm-commits" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html