From patchwork Wed May 19 00:13:01 2010 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Kevin Hilman X-Patchwork-Id: 100649 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by demeter.kernel.org (8.14.3/8.14.3) with ESMTP id o4J0D89e027680 for ; Wed, 19 May 2010 00:13:09 GMT Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753225Ab0ESANI (ORCPT ); Tue, 18 May 2010 20:13:08 -0400 Received: from mail-pw0-f46.google.com ([209.85.160.46]:64175 "EHLO mail-pw0-f46.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752565Ab0ESANH (ORCPT ); Tue, 18 May 2010 20:13:07 -0400 Received: by pwi5 with SMTP id 5so1255474pwi.19 for ; Tue, 18 May 2010 17:13:04 -0700 (PDT) Received: by 10.143.20.41 with SMTP id x41mr5520720wfi.216.1274227983811; Tue, 18 May 2010 17:13:03 -0700 (PDT) Received: from localhost (deeprootsystems.com [216.254.16.51]) by mx.google.com with ESMTPS id 21sm5404784pzk.4.2010.05.18.17.13.02 (version=TLSv1/SSLv3 cipher=RC4-MD5); Tue, 18 May 2010 17:13:03 -0700 (PDT) From: Kevin Hilman To: linux-arm-kernel@lists.infradead.org Cc: linux-omap@vger.kernel.org Subject: [RFC/PATCH] arm: oprofile: remove locking from suspend/resume Date: Tue, 18 May 2010 17:13:01 -0700 Message-Id: <1274227981-20130-1-git-send-email-khilman@deeprootsystems.com> X-Mailer: git-send-email 1.7.0.2 Sender: linux-omap-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-omap@vger.kernel.org X-Greylist: IP, sender and recipient auto-whitelisted, not delayed by milter-greylist-4.2.3 (demeter.kernel.org [140.211.167.41]); Wed, 19 May 2010 00:13:09 +0000 (UTC) diff --git a/arch/arm/oprofile/common.c b/arch/arm/oprofile/common.c index 3fcd752..ea005d8 100644 --- a/arch/arm/oprofile/common.c +++ b/arch/arm/oprofile/common.c @@ -79,19 +79,15 @@ static void op_arm_stop(void) #ifdef CONFIG_PM static int op_arm_suspend(struct sys_device *dev, pm_message_t state) { - mutex_lock(&op_arm_mutex); if (op_arm_enabled) op_arm_model->stop(); - mutex_unlock(&op_arm_mutex); return 0; } static int op_arm_resume(struct sys_device *dev) { - mutex_lock(&op_arm_mutex); if (op_arm_enabled && op_arm_model->start()) op_arm_enabled = 0; - mutex_unlock(&op_arm_mutex); return 0; }