[Skiboot] [PATCH 1/2] cpu: use dt accessor device tree access

Nicholas Piggin npiggin at gmail.com
Wed Sep 18 11:11:13 AEST 2019


Signed-off-by: Nicholas Piggin <npiggin at gmail.com>
---
 core/cpu.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/core/cpu.c b/core/cpu.c
index 232664b41..8e0b0650d 100644
--- a/core/cpu.c
+++ b/core/cpu.c
@@ -1214,7 +1214,7 @@ void init_all_cpus(void)
 			t = &cpu_stacks[pir + thread].cpu;
 			init_cpu_thread(t, state, pir + thread);
 			t->trace = boot_cpu->trace;
-			t->server_no = ((const u32 *)p->prop)[thread];
+			t->server_no = dt_property_get_cell(p, thread);
 			t->is_secondary = true;
 			t->primary = pt;
 			t->node = cpu;
-- 
2.23.0



More information about the Skiboot mailing list