Messages in this thread Patch in this message | | | Date | Wed, 9 Jun 2004 22:51:27 +0200 (MEST) | From | Mikael Pettersson <> | Subject | [PATCH][2.6.7-rc3-mm1] perfctr Dothan support |
| |
Update perfctr/x86 to handle the new 90nm Pentium-M (Dothan).
Signed-off-by: Mikael Pettersson <mikpe@csd.uu.se>
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@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/
| |