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)
committerRobert Richter <robert.richter@amd.com>
Fri, 26 Feb 2010 14:28:16 +0000 (15:28 +0100)
commitcfc9c0b450176a077205ef39092f0dc1a04e020a
tree68e10fea2b2759458e6b955e8d2d24fe85bfbcdd
parentc17c8fbf349482e89b57d1b800e83e9f4cf40c47
oprofile/x86: fix msr access to reserved counters

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.

Cc: stable@kernel.org
Signed-off-by: Robert Richter <robert.richter@amd.com>
arch/x86/oprofile/op_model_amd.c