aboutsummaryrefslogtreecommitdiffstats
path: root/arch/x86/kernel/apic/apic.c
diff options
context:
space:
mode:
Diffstat (limited to 'arch/x86/kernel/apic/apic.c')
-rw-r--r--arch/x86/kernel/apic/apic.c19
1 files changed, 2 insertions, 17 deletions
diff --git a/arch/x86/kernel/apic/apic.c b/arch/x86/kernel/apic/apic.c
index 2bfeafd24f5c..850657d1b0ed 100644
--- a/arch/x86/kernel/apic/apic.c
+++ b/arch/x86/kernel/apic/apic.c
@@ -390,9 +390,6 @@ static void __setup_APIC_LVTT(unsigned int clocks, int oneshot, int irqen)
390 * necessarily a BIOS bug. 390 * necessarily a BIOS bug.
391 */ 391 */
392 392
393#define APIC_EILVT_LVTOFF_MCE 0
394#define APIC_EILVT_LVTOFF_IBS 1
395
396static atomic_t eilvt_offsets[APIC_EILVT_NR_MAX]; 393static atomic_t eilvt_offsets[APIC_EILVT_NR_MAX];
397 394
398static inline int eilvt_entry_is_changeable(unsigned int old, unsigned int new) 395static inline int eilvt_entry_is_changeable(unsigned int old, unsigned int new)
@@ -426,7 +423,7 @@ static unsigned int reserve_eilvt_offset(int offset, unsigned int new)
426 * enables the vector. See also the BKDGs. 423 * enables the vector. See also the BKDGs.
427 */ 424 */
428 425
429static int setup_APIC_eilvt(u8 offset, u8 vector, u8 msg_type, u8 mask) 426int setup_APIC_eilvt(u8 offset, u8 vector, u8 msg_type, u8 mask)
430{ 427{
431 unsigned long reg = APIC_EILVTn(offset); 428 unsigned long reg = APIC_EILVTn(offset);
432 unsigned int new, old, reserved; 429 unsigned int new, old, reserved;
@@ -454,19 +451,7 @@ static int setup_APIC_eilvt(u8 offset, u8 vector, u8 msg_type, u8 mask)
454 451
455 return 0; 452 return 0;
456} 453}
457 454EXPORT_SYMBOL_GPL(setup_APIC_eilvt);
458u8 setup_APIC_eilvt_mce(u8 vector, u8 msg_type, u8 mask)
459{
460 setup_APIC_eilvt(APIC_EILVT_LVTOFF_MCE, vector, msg_type, mask);
461 return APIC_EILVT_LVTOFF_MCE;
462}
463
464u8 setup_APIC_eilvt_ibs(u8 vector, u8 msg_type, u8 mask)
465{
466 setup_APIC_eilvt(APIC_EILVT_LVTOFF_IBS, vector, msg_type, mask);
467 return APIC_EILVT_LVTOFF_IBS;
468}
469EXPORT_SYMBOL_GPL(setup_APIC_eilvt_ibs);
470 455
471/* 456/*
472 * Program the next event, relative to now 457 * Program the next event, relative to now