From 14d4ef254c76504b55948a33f7db960252b024f8 Mon Sep 17 00:00:00 2001 From: Matt Sealey Date: Thu, 28 Oct 2010 01:44:19 -0500 Subject: [PATCH] ARM 5849/1 ARMv7: fix Oprofile events count --- arch/arm/oprofile/op_model_v7.c | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/arch/arm/oprofile/op_model_v7.c b/arch/arm/oprofile/op_model_v7.c index e3bf4fa07e1..640f19b6ba0 100644 --- a/arch/arm/oprofile/op_model_v7.c +++ b/arch/arm/oprofile/op_model_v7.c @@ -191,12 +191,8 @@ int armv7_setup_pmnc(void) return -EBUSY; } - /* - * Initialize & Reset PMNC: C bit, D bit and P bit. - * Note: Using a slower count for CCNT (D bit: divide by 64) results - * in a more stable system - */ - armv7_pmnc_write(PMNC_P | PMNC_C | PMNC_D); + /* Initialize & Reset PMNC: C bit nd P bit */ + armv7_pmnc_write(PMNC_P | PMNC_C); for (cnt = CCNT; cnt < CNTMAX; cnt++) {