]> pilppa.com Git - linux-2.6-omap-h63xx.git/commitdiff
x86/oprofile: op_model_athlon.c: fix counter reset when reenabling IBS OP
authorRobert Richter <robert.richter@amd.com>
Tue, 22 Jul 2008 19:09:04 +0000 (21:09 +0200)
committerIngo Molnar <mingo@elte.hu>
Sat, 26 Jul 2008 09:48:11 +0000 (11:48 +0200)
Signed-off-by: Robert Richter <robert.richter@amd.com>
Cc: oprofile-list <oprofile-list@lists.sourceforge.net>
Cc: Barry Kasindorf <barry.kasindorf@amd.com>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
arch/x86/oprofile/op_model_athlon.c

index a3a2058c372c23779ba074a274b32f16151bd3d5..9c8c8c58313246ad9a859c42fdad29e92b0ef931 100644 (file)
@@ -251,6 +251,7 @@ op_amd_handle_ibs(struct pt_regs * const regs,
                                                (unsigned int *)&ibs_op,
                                                IBS_OP_BEGIN);
                        rdmsr(MSR_AMD64_IBSOPCTL, low, high);
+                       high = 0;
                        low &= ~IBS_OP_LOW_VALID_BIT;
                        low |= IBS_OP_LOW_ENABLE;
                        wrmsr(MSR_AMD64_IBSOPCTL, low, high);