From: Robert Richter Date: Tue, 22 Jul 2008 19:09:04 +0000 (+0200) Subject: x86/oprofile: op_model_athlon.c: fix counter reset when reenabling IBS OP X-Git-Tag: v2.6.28-rc1~35^2~26 X-Git-Url: http://pilppa.com/gitweb/?a=commitdiff_plain;h=543a157bbdfae8eb997506031c3b2d4d17957098;p=linux-2.6-omap-h63xx.git x86/oprofile: op_model_athlon.c: fix counter reset when reenabling IBS OP Signed-off-by: Robert Richter Cc: oprofile-list Cc: Barry Kasindorf Signed-off-by: Ingo Molnar --- diff --git a/arch/x86/oprofile/op_model_athlon.c b/arch/x86/oprofile/op_model_athlon.c index a3a2058c372..9c8c8c58313 100644 --- a/arch/x86/oprofile/op_model_athlon.c +++ b/arch/x86/oprofile/op_model_athlon.c @@ -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);