[<prev] [next>] [day] [month] [year] [list]
Message-ID: <tip-e768aee89c687a50e6a2110e30c5cae1fbf0d2da@git.kernel.org>
Date: Tue, 8 Jun 2010 20:55:50 GMT
From: tip-bot for Livio Soares <livio@...g.toronto.edu>
To: linux-tip-commits@...r.kernel.org
Cc: linux-kernel@...r.kernel.org, acme@...hat.com, hpa@...or.com,
mingo@...hat.com, arjan@...ux.intel.com, a.p.zijlstra@...llo.nl,
livio@...g.toronto.edu, tglx@...utronix.de, mingo@...e.hu
Subject: [tip:perf/core] perf, x86: Small fix to cpuid10_edx
Commit-ID: e768aee89c687a50e6a2110e30c5cae1fbf0d2da
Gitweb: http://git.kernel.org/tip/e768aee89c687a50e6a2110e30c5cae1fbf0d2da
Author: Livio Soares <livio@...g.toronto.edu>
AuthorDate: Thu, 3 Jun 2010 15:00:31 -0400
Committer: Ingo Molnar <mingo@...e.hu>
CommitDate: Tue, 8 Jun 2010 20:27:04 +0200
perf, x86: Small fix to cpuid10_edx
Fixes to 'cpuid10_edx' to comply with Intel documentation.
According to the Intel Manual, Volume 2A, Table 3-12, the cpuid for
architecture performance monitoring returns, in EDX, two pieces of
information:
1) Number of fixed-function counters (5 bits, not 4)
2) Width of fixed-function counters (8 bits)
Signed-off-by: Livio Soares <livio@...g.toronto.edu>
Acked-by: Peter Zijlstra <a.p.zijlstra@...llo.nl>
Cc: Arnaldo Carvalho de Melo <acme@...hat.com>
Cc: Arjan van de Ven <arjan@...ux.intel.com>
Cc: "H. Peter Anvin" <hpa@...or.com>
LKML-Reference: <new-submission>
Signed-off-by: Ingo Molnar <mingo@...e.hu>
---
arch/x86/include/asm/perf_event.h | 5 +++--
1 files changed, 3 insertions(+), 2 deletions(-)
diff --git a/arch/x86/include/asm/perf_event.h b/arch/x86/include/asm/perf_event.h
index 254883d..6ed3ae4 100644
--- a/arch/x86/include/asm/perf_event.h
+++ b/arch/x86/include/asm/perf_event.h
@@ -68,8 +68,9 @@ union cpuid10_eax {
union cpuid10_edx {
struct {
- unsigned int num_counters_fixed:4;
- unsigned int reserved:28;
+ unsigned int num_counters_fixed:5;
+ unsigned int bit_width_fixed:8;
+ unsigned int reserved:19;
} split;
unsigned int full;
};
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists