oprofile/x86: fix msr access to reserved counters
authorRobert Richter <robert.richter@amd.com>
Fri, 26 Feb 2010 12:45:24 +0000 (13:45 +0100)
committerGreg Kroah-Hartman <gregkh@suse.de>
Mon, 15 Mar 2010 16:06:15 +0000 (09:06 -0700)
commit69cb5f7cdc28a5352a03c16bbaa0a92cdf31b9d4
treed278892e76e5489db13f31a2aa5d8fcb7ff841a0
parent53999488a09e797fa8be01166bd3c1c08fd6f297
oprofile/x86: fix msr access to reserved counters

commit cfc9c0b450176a077205ef39092f0dc1a04e020a upstream.

During switching virtual counters there is access to perfctr msrs. If
the counter is not available this fails due to an invalid
address. This patch fixes this.

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