Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit b755de8d authored by Yinghai Lu's avatar Yinghai Lu Committed by Ingo Molnar
Browse files

x86: make dev_to_node return online node



a numa system (with multi HT chains) may return node without ram. Aka it
is not online. Try to get an online node, otherwise return -1.

Signed-off-by: default avatarYinghai Lu <yinghai.lu@sun.com>
Signed-off-by: default avatarIngo Molnar <mingo@elte.hu>
Signed-off-by: default avatarThomas Gleixner <tglx@linutronix.de>
parent 1b40a895
Loading
Loading
Loading
Loading
+3 −0
Original line number Original line Diff line number Diff line
@@ -172,6 +172,9 @@ struct pci_bus * __devinit pci_acpi_scan_root(struct acpi_device *device, int do
		set_mp_bus_to_node(busnum, node);
		set_mp_bus_to_node(busnum, node);
	else
	else
		node = get_mp_bus_to_node(busnum);
		node = get_mp_bus_to_node(busnum);

	if (node != -1 && !node_online(node))
		node = -1;
#endif
#endif


	/* Allocate per-root-bus (not per bus) arch-specific data.
	/* Allocate per-root-bus (not per bus) arch-specific data.