From patchwork Mon Jul 25 13:18:24 2011 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Grazvydas Ignotas X-Patchwork-Id: 1004332 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by demeter1.kernel.org (8.14.4/8.14.4) with ESMTP id p6PDIbB6000733 for ; Mon, 25 Jul 2011 13:18:37 GMT Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751139Ab1GYNSb (ORCPT ); Mon, 25 Jul 2011 09:18:31 -0400 Received: from mail-fx0-f52.google.com ([209.85.161.52]:39158 "EHLO mail-fx0-f52.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751471Ab1GYNSa (ORCPT ); Mon, 25 Jul 2011 09:18:30 -0400 Received: by mail-fx0-f52.google.com with SMTP id 18so9071205fxd.11 for ; Mon, 25 Jul 2011 06:18:30 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=from:to:cc:subject:date:message-id:x-mailer; bh=k+h6EF5uDKzS4Y3+EqkHihF1k1ijaW10X8sNKVsNuwg=; b=SX0VzIqEdPXXKK4wTndwGLzbNkDpa/2KropJjkxn4Aqk+STpIKDCMT3f3es5vq/60s yfIK9ncXzVS/Nue6850U78IkMu0gTGHEA2Z3gO51PBptOwawYuOkETYIFH9z5cE3v7rt HjmPOm6BnSvSXFoRMRnETOf9twHZhb8934TO8= Received: by 10.223.23.26 with SMTP id p26mr6833604fab.98.1311599910034; Mon, 25 Jul 2011 06:18:30 -0700 (PDT) Received: from localhost.localdomain (ip-88-119-226-136.static.b4net.lt [88.119.226.136]) by mx.google.com with ESMTPS id h9sm3790701faa.15.2011.07.25.06.18.28 (version=TLSv1/SSLv3 cipher=OTHER); Mon, 25 Jul 2011 06:18:28 -0700 (PDT) From: Grazvydas Ignotas To: linux-omap@vger.kernel.org Cc: linux-arm-kernel@lists.infradead.org, Kevin Hilman , Grazvydas Ignotas , Steve Sakoman Subject: [PATCH] OMAP: omap_device: make latency autoadjust messages debug Date: Mon, 25 Jul 2011 16:18:24 +0300 Message-Id: <1311599904-5981-1-git-send-email-notasas@gmail.com> X-Mailer: git-send-email 1.7.0.4 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.6 (demeter1.kernel.org [140.211.167.41]); Mon, 25 Jul 2011 13:18:38 +0000 (UTC) During normal system operation warning messages similar to this are appearing quite often: omap_device: omap4-keypad.-1: new worst case activate latency 0: 61035 This doesn't seem to be reporting a problem, nor is it very useful for non-developers, so reduce it to debug level. Cc: Steve Sakoman Signed-off-by: Grazvydas Ignotas --- Applies on top of git://git.pwsan.com/linux-2.6 prcm-devel-3.1 + Kevin's "OMAP: omap_device: replace pr_* prints with dev_*". arch/arm/plat-omap/omap_device.c | 16 ++++++++-------- 1 files changed, 8 insertions(+), 8 deletions(-) diff --git a/arch/arm/plat-omap/omap_device.c b/arch/arm/plat-omap/omap_device.c index 1914d7e..f363cbf 100644 --- a/arch/arm/plat-omap/omap_device.c +++ b/arch/arm/plat-omap/omap_device.c @@ -146,10 +146,10 @@ static int _omap_device_activate(struct omap_device *od, u8 ignore_lat) odpl->activate_lat_worst = act_lat; if (odpl->flags & OMAP_DEVICE_LATENCY_AUTO_ADJUST) { odpl->activate_lat = act_lat; - dev_warn(&od->pdev.dev, - "new worst case activate latency " - "%d: %llu\n", - od->pm_lat_level, act_lat); + dev_dbg(&od->pdev.dev, + "new worst case activate latency " + "%d: %llu\n", + od->pm_lat_level, act_lat); } else dev_warn(&od->pdev.dev, "activate latency %d " @@ -213,10 +213,10 @@ static int _omap_device_deactivate(struct omap_device *od, u8 ignore_lat) odpl->deactivate_lat_worst = deact_lat; if (odpl->flags & OMAP_DEVICE_LATENCY_AUTO_ADJUST) { odpl->deactivate_lat = deact_lat; - dev_warn(&od->pdev.dev, - "new worst case deactivate latency " - "%d: %llu\n", - od->pm_lat_level, deact_lat); + dev_dbg(&od->pdev.dev, + "new worst case deactivate latency " + "%d: %llu\n", + od->pm_lat_level, deact_lat); } else dev_warn(&od->pdev.dev, "deactivate latency %d "