All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] ARM: kernel: respect device tree status of cpu nodes
@ 2014-02-24 11:22 ` Jürg Billeter
  0 siblings, 0 replies; 9+ messages in thread
From: Jürg Billeter @ 2014-02-24 11:22 UTC (permalink / raw)
  To: linux-arm-kernel

Skip 'disabled' cpu nodes when building the cpu logical map. This avoids
booting cpus that have been disabled in the device tree.

Signed-off-by: J?rg Billeter <j@bitron.ch>
Reviewed-by: Ben Dooks <ben.dooks@codethink.co.uk>
---
 arch/arm/kernel/devtree.c | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/arch/arm/kernel/devtree.c b/arch/arm/kernel/devtree.c
index 739c3df..9aed299 100644
--- a/arch/arm/kernel/devtree.c
+++ b/arch/arm/kernel/devtree.c
@@ -95,6 +95,10 @@ void __init arm_dt_init_cpu_maps(void)
 		if (of_node_cmp(cpu->type, "cpu"))
 			continue;
 
+		/* Check if CPU is enabled */
+		if (!of_device_is_available(cpu))
+			continue;
+
 		pr_debug(" * %s...\n", cpu->full_name);
 		/*
 		 * A device tree containing CPU nodes with missing "reg"
-- 
1.9.0

^ permalink raw reply related	[flat|nested] 9+ messages in thread

end of thread, other threads:[~2014-03-06 16:51 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-02-24 11:22 [PATCH] ARM: kernel: respect device tree status of cpu nodes Jürg Billeter
2014-02-24 11:22 ` Jürg Billeter
2014-02-24 11:22 ` Jürg Billeter
2014-03-05 20:33 ` Stephen Boyd
2014-03-05 20:33   ` Stephen Boyd
     [not found]   ` <53178A03.3090004-sgV2jX0FEOL9JmXXK+q4OQ@public.gmane.org>
2014-03-06 10:00     ` [Linux-kernel] " Ben Dooks
2014-03-06 10:00       ` Ben Dooks
     [not found]       ` <5318472A.5060700-4yDnlxn2s6sWdaTGBSpHTA@public.gmane.org>
2014-03-06 16:51         ` Lorenzo Pieralisi
2014-03-06 16:51           ` Lorenzo Pieralisi

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.