x86/lapic: Use the existing lapicid() function

coreboot has a lapicid() function, so use it.

Change-Id: I7f536c229f271674c34d722b5db96ce665b720f1
Signed-off-by: Marc Jones <marcj303@gmail.com>
Reviewed-on: https://review.coreboot.org/22192
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Reviewed-by: Paul Menzel <paulepanter@users.sourceforge.net>
Reviewed-by: Aaron Durbin <adurbin@chromium.org>
This commit is contained in:
Marc Jones 2017-10-26 16:14:09 -06:00 committed by Marc Jones
parent 8db7f8bad7
commit c68d410ef7
1 changed files with 1 additions and 1 deletions

View File

@ -351,7 +351,7 @@ void stop_this_cpu(void)
unsigned long send_status; unsigned long send_status;
unsigned long id; unsigned long id;
id = lapic_read(LAPIC_ID) >> 24; id = lapicid();
printk(BIOS_DEBUG, "CPU %ld going down...\n", id); printk(BIOS_DEBUG, "CPU %ld going down...\n", id);