[PATCH][2.6.7-rc3-mm1] perfctr Dothan support

From: Mikael Pettersson
Date: Wed Jun 09 2004 - 15:54:08 EST


Update perfctr/x86 to handle the new 90nm Pentium-M (Dothan).

Signed-off-by: Mikael Pettersson <mikpe@xxxxxxxxx>

diff -ruN linux-2.6.7-rc3-mm1/drivers/perfctr/x86.c linux-2.6.7-rc3-mm1.perfctr-update/drivers/perfctr/x86.c
--- linux-2.6.7-rc3-mm1/drivers/perfctr/x86.c 2004-06-09 19:38:38.000000000 +0200
+++ linux-2.6.7-rc3-mm1.perfctr-update/drivers/perfctr/x86.c 2004-06-09 21:04:33.000000000 +0200
@@ -1239,7 +1239,8 @@
clear_counters = p5_clear_counters;
return 0;
case 6:
- if (current_cpu_data.x86_model == 9) { /* Pentium M */
+ if (current_cpu_data.x86_model == 9 ||
+ current_cpu_data.x86_model == 13) { /* Pentium M */
/* Pentium M added the MISC_ENABLE MSR from P4. */
rdmsr_low(MSR_IA32_MISC_ENABLE, misc_enable);
if (!(misc_enable & MSR_IA32_MISC_ENABLE_PERF_AVAIL))
@@ -1263,7 +1264,8 @@
cpu_isuspend = p6_isuspend;
cpu_iresume = p6_iresume;
/* P-M apparently inherited P4's LVTPC auto-masking :-( */
- if (current_cpu_data.x86_model == 9)
+ if (current_cpu_data.x86_model == 9 ||
+ current_cpu_data.x86_model == 13)
lvtpc_reinit_needed = 1;
}
#endif
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/