lkml.org 
[lkml]   [2004]   [Apr]   [22]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
Date
From
Subject[PATCH][2.6.6-rc2] clean up Pentium M quirk code in nmi.c
This patch simplifies the Pentium M quirk code in
nmi.c, and eliminates an unnecessary apic_read().

Local APIC accesses are not zero-cycle; let's not
inflict more damage than we must.

/Mikael

diff -ruN linux-2.6.6-rc2/arch/i386/kernel/nmi.c linux-2.6.6-rc2.nmi-fix/arch/i386/kernel/nmi.c
--- linux-2.6.6-rc2/arch/i386/kernel/nmi.c 2004-04-22 12:33:48.000000000 +0200
+++ linux-2.6.6-rc2.nmi-fix/arch/i386/kernel/nmi.c 2004-04-22 13:09:54.000000000 +0200
@@ -462,8 +462,7 @@
/* Only P6 based Pentium M need to re-unmask
* the apic vector but it doesn't hurt
* other P6 variant */
- apic_write(APIC_LVTPC,
- apic_read(APIC_LVTPC) & ~APIC_LVT_MASKED);
+ apic_write(APIC_LVTPC, APIC_DM_NMI);
}
wrmsr(nmi_perfctr_msr, -(cpu_khz/nmi_hz*1000), -1);
}
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
\
 
 \ /
  Last update: 2005-03-22 14:02    [W:0.061 / U:0.100 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site