oprofile/x86: fix perfctr nmi reservation for mulitplexing
commit0ec19d6374c345a3c66da1576bec0f2cbe4b0d95
authorRobert Richter <robert.richter@amd.com>
Thu, 25 Feb 2010 18:16:46 +0000 (25 19:16 +0100)
committerGreg Kroah-Hartman <gregkh@suse.de>
Mon, 15 Mar 2010 15:49:47 +0000 (15 08:49 -0700)
tree78d18d8874830dead48023378c6e339347cf5e7b
parent2451bd963fac237ff5545b28b399cd952bffc035
oprofile/x86: fix perfctr nmi reservation for mulitplexing

commit 68dc819ce829f7e7977a56524e710473bdb55115 upstream.

Multiple virtual counters share one physical counter. The reservation
of virtual counters fails due to duplicate allocation of the same
counter. The counters are already reserved. Thus, virtual counter
reservation may removed at all. This also makes the code easier.

Signed-off-by: Robert Richter <robert.richter@amd.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
arch/x86/oprofile/nmi_int.c
arch/x86/oprofile/op_model_amd.c