public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH -tip] perf_counter/x86: Fix the model number of Intel Core2 processors
@ 2009-06-10  9:06 Yong Wang
  2009-06-10 10:36 ` [tip:perfcounters/core] " tip-bot for Yong Wang
                   ` (2 more replies)
  0 siblings, 3 replies; 5+ messages in thread
From: Yong Wang @ 2009-06-10  9:06 UTC (permalink / raw)
  To: Ingo Molnar; +Cc: linux-kernel

Fix the model number of Intel Core2 processors according to the documentation
Intel Processor Identification with the CPUID Instruction
http://www.intel.com/support/processors/sb/cs-009861.htm

Signed-off-by: Yong Wang <yong.y.wang@intel.com>

---
 arch/x86/kernel/cpu/perf_counter.c |    3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/arch/x86/kernel/cpu/perf_counter.c b/arch/x86/kernel/cpu/perf_counter.c
index 40978aa..a49a82c 100644
--- a/arch/x86/kernel/cpu/perf_counter.c
+++ b/arch/x86/kernel/cpu/perf_counter.c
@@ -1407,7 +1407,8 @@ static int intel_pmu_init(void)
 	 * Install the hw-cache-events table:
 	 */
 	switch (boot_cpu_data.x86_model) {
-	case 17:
+	case 15:
+	case 23:
 		memcpy(hw_cache_event_ids, core2_hw_cache_event_ids,
 		       sizeof(hw_cache_event_ids));
 

^ permalink raw reply related	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2009-06-10 11:07 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-06-10  9:06 [PATCH -tip] perf_counter/x86: Fix the model number of Intel Core2 processors Yong Wang
2009-06-10 10:36 ` [tip:perfcounters/core] " tip-bot for Yong Wang
2009-06-10 11:01 ` [PATCH -tip] " Arnd Bergmann
2009-06-10 11:05   ` Ingo Molnar
2009-06-10 11:06 ` [tip:perfcounters/core] " tip-bot for Yong Wang

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox