• Yinghai Lu's avatar
    x86: make 64bit have get_apic_id · f910a9dc
    Yinghai Lu authored
    generalize the x2apic code some more.
    
    let read_apic_id become a macro (later on a function/inline)
    GET_APIC_ID(apic_read(APIC_ID))
    
      +#define read_apic_id()  (GET_APIC_ID(apic_read(APIC_ID)))
    
    instead of this weird construct:
    
      -#define read_apic_id  (genapic->read_apic_id)
    Signed-off-by: default avatarYinghai Lu <yhlu.kernel@gmail.com>
    Cc: Suresh Siddha <suresh.b.siddha@intel.com>
    Signed-off-by: default avatarIngo Molnar <mingo@elte.hu>
    f910a9dc
genapic_64.h 1.74 KB