]> git.baikalelectronics.ru Git - kernel.git/commit
x86/x2apic: Make stub functions available even if !CONFIG_X86_LOCAL_APIC
authorPaolo Bonzini <pbonzini@redhat.com>
Mon, 28 Sep 2015 10:26:31 +0000 (12:26 +0200)
committerThomas Gleixner <tglx@linutronix.de>
Wed, 30 Sep 2015 19:17:36 +0000 (21:17 +0200)
commit2c5b9a76d86c2aa4b1a0532252a69de77e22ce5e
tree3de05ae041cbac53edd06ff0a4f2ad880767ca0c
parent10081a8d386e8d27bd6237c502ee0d88f0b2db40
x86/x2apic: Make stub functions available even if !CONFIG_X86_LOCAL_APIC

Some CONFIG_X86_X2APIC functions, especially x2apic_enabled(), are not
declared if !CONFIG_X86_LOCAL_APIC.  However, the same stubs that work
for !CONFIG_X86_X2APIC are okay even if there is no local APIC support
at all.

Avoid the introduction of #ifdefs by moving the x2apic declarations
completely outside the CONFIG_X86_LOCAL_APIC block.  (Unfortunately,
diff generation messes up the actual change that this patch makes).
There is no semantic change because CONFIG_X86_X2APIC depends on
CONFIG_X86_LOCAL_APIC.

Reported-by: Fengguang Wu <fengguang.wu@intel.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Cc: Feng Wu <feng.wu@intel.com>
Link: http://lkml.kernel.org/r/1443435991-35750-1-git-send-email-pbonzini@redhat.com
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
arch/x86/include/asm/apic.h