mirror of
https://github.com/torvalds/linux.git
synced 2024-12-18 17:12:55 +00:00
x86_64: apic.c coding style janitor work
Fix coding style, white space wreckage and remove unused code. Signed-off-by: Thomas Gleixner <tglx@linutronix.de> Signed-off-by: Chris Wright <chrisw@sous-sol.org> Signed-off-by: Ingo Molnar <mingo@elte.hu> Signed-off-by: Andi Kleen <ak@suse.de> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
This commit is contained in:
parent
0655d7c32b
commit
6935d1f922
@ -93,7 +93,8 @@ void enable_NMI_through_LVT0 (void * dummy)
|
||||
{
|
||||
unsigned int v;
|
||||
|
||||
v = APIC_DM_NMI; /* unmask and set to NMI */
|
||||
/* unmask and set to NMI */
|
||||
v = APIC_DM_NMI;
|
||||
apic_write(APIC_LVT0, v);
|
||||
}
|
||||
|
||||
@ -1128,20 +1129,6 @@ asmlinkage void smp_spurious_interrupt(void)
|
||||
if (v & (1 << (SPURIOUS_APIC_VECTOR & 0x1f)))
|
||||
ack_APIC_irq();
|
||||
|
||||
#if 0
|
||||
static unsigned long last_warning;
|
||||
static unsigned long skipped;
|
||||
|
||||
/* see sw-dev-man vol 3, chapter 7.4.13.5 */
|
||||
if (time_before(last_warning+30*HZ,jiffies)) {
|
||||
printk(KERN_INFO "spurious APIC interrupt on CPU#%d, %ld skipped.\n",
|
||||
smp_processor_id(), skipped);
|
||||
last_warning = jiffies;
|
||||
skipped = 0;
|
||||
} else {
|
||||
skipped++;
|
||||
}
|
||||
#endif
|
||||
irq_exit();
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user