* [PATCH 1/3] perfmon x86 infra(take 2): add cpu_has_arch_perfmon
@ 2008-03-07 21:05 stephane eranian
0 siblings, 0 replies; only message in thread
From: stephane eranian @ 2008-03-07 21:05 UTC (permalink / raw)
To: linux-kernel; +Cc: Andrew Morton, ak, Ingo Molnar, tglx
adds cpu_has_arch_perfmon to test presence of architectural perfmon on
Intel x86 processor
Signed-off-by: Stephane Eranian <eranian@gmail.com>
--- a/include/asm-x86/cpufeature.h
+++ b/include/asm-x86/cpufeature.h
@@ -181,6 +181,7 @@ extern const char * const x86_power_flags[32];
#define cpu_has_clflush boot_cpu_has(X86_FEATURE_CLFLSH)
#define cpu_has_bts boot_cpu_has(X86_FEATURE_BTS)
#define cpu_has_gbpages boot_cpu_has(X86_FEATURE_GBPAGES)
+#define cpu_has_arch_perfmon boot_cpu_has(X86_FEATURE_ARCH_PERFMON)
#if defined(CONFIG_X86_INVLPG) || defined(CONFIG_X86_64)
# define cpu_has_invlpg 1
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2008-03-07 21:06 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2008-03-07 21:05 [PATCH 1/3] perfmon x86 infra(take 2): add cpu_has_arch_perfmon stephane eranian
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®