android_kernel_xiaomi_sm8350/arch/x86/kernel/cpu
Vince Weaver 11d1578f94 perf_counter: Add P6 PMU support
Add basic P6 PMU support. The P6 uses the EVNTSEL0 EN bit to
enable/disable both its counters. We use this for the
global enable/disable, and clear all config bits (except EN)
to disable individual counters.

Actual ia32 hardware doesn't support lfence, so use a locked
op without side-effect to implement a full barrier.

perf stat and perf record seem to function correctly.

[a.p.zijlstra@chello.nl: cleanups and complete the enable/disable code]

Signed-off-by: Vince Weaver <vince@deater.net>
Signed-off-by: Peter Zijlstra <a.p.zijlstra@chello.nl>
LKML-Reference: <Pine.LNX.4.64.0907081718450.2715@pianoman.cluster.toy>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
2009-07-10 10:28:26 +02:00
..
cpufreq [CPUFREQ] cpumask: new cpumask operators for arch/x86/kernel/cpu/cpufreq/powernow-k8.c 2009-06-15 11:49:43 -04:00
mcheck x86, mce: percpu mcheck_timer should be pinned 2009-06-25 13:33:02 -07:00
mtrr Merge branch 'x86-cleanups-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/linux-2.6-tip 2009-06-10 15:49:36 -07:00
.gitignore
addon_cpuid_features.c
amd.c x86: Set cpu_llc_id on AMD CPUs 2009-06-21 10:13:32 +02:00
bugs_64.c
bugs.c
centaur.c
cmpxchg.c
common.c Revert "x86: cap iomem_resource to addressable physical memory" 2009-06-28 09:38:47 +02:00
cpu_debug.c Merge branch 'x86-cpu-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/linux-2.6-tip 2009-06-10 15:51:15 -07:00
cpu.h
cyrix.c
hypervisor.c
intel_cacheinfo.c
intel.c x86: add hooks for kmemcheck 2009-06-15 12:40:02 +02:00
Makefile
mkcapflags.pl
perf_counter.c perf_counter: Add P6 PMU support 2009-07-10 10:28:26 +02:00
perfctr-watchdog.c x86: nmi: Add Intel processor 0x6f4 to NMI perfctr1 workaround 2009-06-17 18:20:39 +02:00
powerflags.c
proc.c
transmeta.c
umc.c
vmware.c