projects
/
linux.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
4d97b92
)
csky: Use of_get_cpu_hwid()
author
Rob Herring
<robh@kernel.org>
Wed, 6 Oct 2021 16:43:25 +0000
(11:43 -0500)
committer
Rob Herring
<robh@kernel.org>
Wed, 20 Oct 2021 18:37:24 +0000
(13:37 -0500)
Replace open coded parsing of CPU nodes 'reg' property with
of_get_cpu_hwid().
Cc: Guo Ren <guoren@kernel.org>
Cc: linux-csky@vger.kernel.org
Signed-off-by: Rob Herring <robh@kernel.org>
Link:
https://lore.kernel.org/r/20211006164332.1981454-6-robh@kernel.org
arch/csky/kernel/smp.c
patch
|
blob
|
history
diff --git
a/arch/csky/kernel/smp.c
b/arch/csky/kernel/smp.c
index e2993539af8efea577a76ee325c932e6eb060a0b..6bb38bc2f39b4370807842a22a38e084b7be03c2 100644
(file)
--- a/
arch/csky/kernel/smp.c
+++ b/
arch/csky/kernel/smp.c
@@
-180,15
+180,13
@@
void __init setup_smp_ipi(void)
void __init setup_smp(void)
{
struct device_node *node = NULL;
- int cpu;
+
unsigned
int cpu;
for_each_of_cpu_node(node) {
if (!of_device_is_available(node))
continue;
- if (of_property_read_u32(node, "reg", &cpu))
- continue;
-
+ cpu = of_get_cpu_hwid(node, 0);
if (cpu >= NR_CPUS)
continue;