Message ID | 20190918011114.21254-1-npiggin@gmail.com |
---|---|
State | Superseded |
Headers | show |
Series | [1/2] cpu: use dt accessor device tree access | expand |
Context | Check | Description |
---|---|---|
snowpatch_ozlabs/apply_patch | success | Successfully applied on branch master (470ffb5f29d741c3bed600f7bb7bf0cbb270e05a) |
snowpatch_ozlabs/snowpatch_job_snowpatch-skiboot | success | Test snowpatch/job/snowpatch-skiboot on branch master |
snowpatch_ozlabs/snowpatch_job_snowpatch-skiboot-dco | success | Signed-off-by present |
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;
Signed-off-by: Nicholas Piggin <npiggin@gmail.com> --- core/cpu.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)