perf_counter, x86: rework counter disable functions
authorRobert Richter <robert.richter@amd.com>
Wed, 29 Apr 2009 10:47:19 +0000 (12:47 +0200)
committerIngo Molnar <mingo@elte.hu>
Wed, 29 Apr 2009 12:51:11 +0000 (14:51 +0200)
commitd43698918bd46c71d494555fb92195fbea1fcb6c
tree5331574db6fa4bdefa3da6e06a266631ff358d17
parent7c90cc45f89af4dd4617f97d452740ad95b800d5
perf_counter, x86: rework counter disable functions

As for the enable function, this patch reworks the disable functions
and introduces x86_pmu_disable_counter(). The internal function i/f in
struct x86_pmu changed too.

[ Impact: refactor and generalize code ]

Signed-off-by: Robert Richter <robert.richter@amd.com>
Cc: Paul Mackerras <paulus@samba.org>
Acked-by: Peter Zijlstra <a.p.zijlstra@chello.nl>
LKML-Reference: <1241002046-8832-23-git-send-email-robert.richter@amd.com>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
arch/x86/kernel/cpu/perf_counter.c