From 7adf9fb420bd005cfab75d663fcd7aa1d8fe1b2a Mon Sep 17 00:00:00 2001
From: Lorenzo Pieralisi <lorenzo.pieralisi@arm.com>
Date: Thu, 24 Apr 2014 12:46:14 +0100
Subject: [PATCH] arm64: kernel: topology: minor cosmetic changes
This patch applies some minor changes to the topology code in
preparation for merging it.
Signed-off-by: Lorenzo Pieralisi <lorenzo.pieralisi@arm.com>
---
arch/arm64/kernel/topology.c | 3 ++-
1 files changed, 2 insertions(+), 1 deletions(-)
@@ -31,11 +31,12 @@ static int __init get_cpu_for_node(struct device_node *node)
if (!cpu_node)
return -1;
- for_each_possible_cpu(cpu)
+ for_each_possible_cpu(cpu) {
if (of_get_cpu_node(cpu, NULL) == cpu_node) {
of_node_put(cpu_node);
return cpu;
}
+ }
pr_crit("Unable to find CPU node for %s\n", cpu_node->full_name);
--
1.7.5.4