Changelog:
v1 -> v2:
In patch v1, binding numa node to specified device only take effect for dt-nodes
directly of root. Patch v2 removed this limitation, we can binding numa node to
any specified device in devicetree.
Zhen Lei (1):
of: to support binding numa node to specified device in devicetree
drivers/base/core.c | 2 +-
drivers/of/device.c | 11 ++++++-----
2 files changed, 7 insertions(+), 6 deletions(-)
--
2.5.0
--
To unsubscribe from this list: send the line "unsubscribe devicetree" in
the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
For now, in function device_add, the new device will be forced to
inherit the numa node of its parent. But this will override the device's
numa node which configured in devicetree.
Signed-off-by: Zhen Lei <redacted>
---
drivers/base/core.c | 2 +-
drivers/of/device.c | 11 ++++++-----
2 files changed, 7 insertions(+), 6 deletions(-)
@@ -60,11 +60,12 @@ int of_device_add(struct platform_device *ofdev)ofdev->name=dev_name(&ofdev->dev);ofdev->id=-1;-/* device_add will assume that this device is on the same node as-*theparent.Ifthereisnoparentdefined,setthenode-*explicitly*/-if(!ofdev->dev.parent)-set_dev_node(&ofdev->dev,of_node_to_nid(ofdev->dev.of_node));+/*+*Ifthisdevicehasnotbindingnumanodeindevicetree,thatis+*of_node_to_nidreturnsNUMA_NO_NODE.device_addwillassumethatthis+*deviceisonthesamenodeastheparent.+*/+set_dev_node(&ofdev->dev,of_node_to_nid(ofdev->dev.of_node));returndevice_add(&ofdev->dev);}--
2.5.0
--
To unsubscribe from this list: send the line "unsubscribe devicetree" in
the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Sorry, missed version number in title.
On 2015/8/25 12:08, Zhen Lei wrote:
Changelog:
v1 -> v2:
In patch v1, binding numa node to specified device only take effect for dt-nodes
directly of root. Patch v2 removed this limitation, we can binding numa node to
any specified device in devicetree.
Zhen Lei (1):
of: to support binding numa node to specified device in devicetree
drivers/base/core.c | 2 +-
drivers/of/device.c | 11 ++++++-----
2 files changed, 7 insertions(+), 6 deletions(-)
Hi all,
Can somebody take a few moments to review it? This patch is
too small, only changed two lines.
Thanks,
Thunder.
On 2015/8/25 12:08, Zhen Lei wrote:
quoted hunk
For now, in function device_add, the new device will be forced to
inherit the numa node of its parent. But this will override the device's
numa node which configured in devicetree.
Signed-off-by: Zhen Lei <redacted>
---
drivers/base/core.c | 2 +-
drivers/of/device.c | 11 ++++++-----
2 files changed, 7 insertions(+), 6 deletions(-)
@@ -60,11 +60,12 @@ int of_device_add(struct platform_device *ofdev)ofdev->name=dev_name(&ofdev->dev);ofdev->id=-1;-/* device_add will assume that this device is on the same node as-*theparent.Ifthereisnoparentdefined,setthenode-*explicitly*/-if(!ofdev->dev.parent)-set_dev_node(&ofdev->dev,of_node_to_nid(ofdev->dev.of_node));+/*+*Ifthisdevicehasnotbindingnumanodeindevicetree,thatis+*of_node_to_nidreturnsNUMA_NO_NODE.device_addwillassumethatthis+*deviceisonthesamenodeastheparent.+*/+set_dev_node(&ofdev->dev,of_node_to_nid(ofdev->dev.of_node));returndevice_add(&ofdev->dev);}--
2.5.0
.
--
To unsubscribe from this list: send the line "unsubscribe devicetree" in
the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
More majordomo info at http://vger.kernel.org/majordomo-info.html