threshold.c 652 字节
Newer Older
1 2 3
/*
 * Common corrected MCE threshold handler code:
 */
4
#include <linux/interrupt.h>
5 6
#include <linux/kernel.h>

7
#include <asm/irq_vectors.h>
8
#include <asm/apic.h>
9
#include <asm/idle.h>
10
#include <asm/mce.h>
11 12 13 14 15 16 17 18 19

static void default_threshold_interrupt(void)
{
	printk(KERN_ERR "Unexpected threshold interrupt at vector %x\n",
			 THRESHOLD_APIC_VECTOR);
}

void (*mce_threshold_vector)(void) = default_threshold_interrupt;

20
static inline void __smp_threshold_interrupt(void)
21 22 23
{
	inc_irq_stat(irq_threshold_count);
	mce_threshold_vector();
24 25 26 27 28 29 30
}

asmlinkage void smp_threshold_interrupt(void)
{
	entering_irq();
	__smp_threshold_interrupt();
	exiting_ack_irq();
31
}