cpu/cpu.h: Change the function signature

There is no need to pass the CPU index around.

Change-Id: Iad8e3cb318e6520ac5877118dbf43597dedb75b9
Signed-off-by: Arthur Heymans <arthur@aheymans.xyz>
Reviewed-on: https://review.coreboot.org/c/coreboot/+/69504
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Reviewed-by: Elyes Haouas <ehaouas@noos.fr>
This commit is contained in:
Arthur Heymans
2022-11-12 16:51:22 +01:00
committed by Martin L Roth
parent 2db459edb0
commit 6e23da2983
3 changed files with 5 additions and 13 deletions

View File

@ -229,7 +229,7 @@ int cpu_get_apic_id(int logical_cpu)
return cpus_default_apic_id[logical_cpu];
}
void cpu_initialize(unsigned int index)
void cpu_initialize(void)
{
/* Because we busy wait at the printk spinlock.
* It is important to keep the number of printed messages
@ -242,7 +242,7 @@ void cpu_initialize(unsigned int index)
info = cpu_info();
printk(BIOS_INFO, "Initializing CPU #%d\n", index);
printk(BIOS_INFO, "Initializing CPU #%zd\n", info->index);
cpu = info->cpu;
if (!cpu)
@ -284,7 +284,7 @@ void cpu_initialize(unsigned int index)
}
post_log_clear();
printk(BIOS_INFO, "CPU #%d initialized\n", index);
printk(BIOS_INFO, "CPU #%zd initialized\n", info->index);
}
void lb_arch_add_records(struct lb_header *header)