lkml.org 
[lkml]   [2020]   [Mar]   [7]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
From
SubjectRe: Is this code chunk in init_apic_mappings() superfluous?
Date
Cao jin <caoj.fnst@cn.fujitsu.com> writes:
> Hi,
>
> I am trying to figure the following code chunk out:
>
> if (x2apic_mode) {
> boot_cpu_physical_apicid = read_apic_id();
> return;
> }
>
> As my understanding, even in x2APIC mode, boot_cpu_physical_apicid is
> also got via early_acpi_process_madt --> ... --> register_lapic_address,
> so, is it for any corner case I am not aware?

The case when there are neither ACPI nor valid mptables. Unlikely, but
possible in theory.

Thanks,

tglx

\
 
 \ /
  Last update: 2020-03-07 12:28    [W:0.051 / U:1.976 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site