Skip to content

Commit 8079ce3

Browse files
KAGA-KOKOlenb
authored andcommitted
sfi: Remove unused code
Signed-off-by: Thomas Gleixner <tglx@linutronix.de> Signed-off-by: Feng Tang <feng.tang@intel.com> Signed-off-by: Len Brown <len.brown@intel.com>
1 parent 5f0db7a commit 8079ce3

1 file changed

Lines changed: 0 additions & 4 deletions

File tree

‎arch/x86/kernel/sfi.c‎

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -55,16 +55,12 @@ void __init mp_sfi_register_lapic_address(unsigned long address)
5555
/* All CPUs enumerated by SFI must be present and enabled */
5656
void __cpuinit mp_sfi_register_lapic(u8 id)
5757
{
58-
int boot_cpu = 0;
59-
6058
if (MAX_APICS - id <= 0) {
6159
pr_warning("Processor #%d invalid (max %d)\n",
6260
id, MAX_APICS);
6361
return;
6462
}
6563

66-
if (id == boot_cpu_physical_apicid)
67-
boot_cpu = 1;
6864
pr_info("registering lapic[%d]\n", id);
6965

7066
generic_processor_info(id, GET_APIC_VERSION(apic_read(APIC_LVR)));

0 commit comments

Comments
 (0)