The smp_processor_id() is set at the beginning of start_secondary. We don't
need to compute ourself the offset of the cpu data.
Signed-off-by: Julien Grall <julien.grall@linaro.org>
Acked-by: Ian Campbell <ian.campbell@citrix.com>
unsigned long fdt_paddr,
unsigned long cpuid)
{
- struct cpuinfo_arm *c = cpu_data + cpuid;
-
memset(get_cpu_info(), 0, sizeof (struct cpu_info));
/* TODO: handle boards where CPUIDs are not contiguous */
set_processor_id(cpuid);
- *c = boot_cpu_data;
- identify_cpu(c);
+ current_cpu_data = boot_cpu_data;
+ identify_cpu(¤t_cpu_data);
init_traps();