From patchwork Fri Jan 11 13:13:06 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Lee Jones X-Patchwork-Id: 13991 Return-Path: X-Original-To: patchwork@peony.canonical.com Delivered-To: patchwork@peony.canonical.com Received: from fiordland.canonical.com (fiordland.canonical.com [91.189.94.145]) by peony.canonical.com (Postfix) with ESMTP id E73AF23E27 for ; Fri, 11 Jan 2013 13:13:55 +0000 (UTC) Received: from mail-vb0-f48.google.com (mail-vb0-f48.google.com [209.85.212.48]) by fiordland.canonical.com (Postfix) with ESMTP id 8CBA4A1849E for ; Fri, 11 Jan 2013 13:13:55 +0000 (UTC) Received: by mail-vb0-f48.google.com with SMTP id fc21so1389131vbb.35 for ; Fri, 11 Jan 2013 05:13:55 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=x-received:x-forwarded-to:x-forwarded-for:delivered-to:x-received :received-spf:x-received:from:to:cc:subject:date:message-id:x-mailer :in-reply-to:references:x-gm-message-state; bh=8Ct/hvvuVQeIxIWmuyuH9Yim8hXdaQqvvsiEsRemXuw=; b=pq0uECW/TY7yiB6WhseXhQBsBbjLgpkQhdoOHrcYIiNWfFIoQbrk1/tkAGUwUuRd1C BI8HArP8EHF92HItTmKVNN9byIz02jWTL7i9GFe6nc8He3OVeU+TQNvB+q5TD1qMDUlQ 1io1DQbnfLI1InYHN5ytrvC7076QO+++MwS35ZHs96VlZ/7zGPvag4Ff1aI9MNHfxa/J XDZX6/DnJRX6REJ5FB3gikvN+LG4Qu6znpeQGGeab3qKg2/xReoBjOdkTDElhMODjMYO 9IgpPv/ENhoXatoNSsxxgH8dryrT+M1q6YEED00hvOx2XFIZvowfrwp4v7YmxLxPSqcg KZbg== X-Received: by 10.221.0.79 with SMTP id nl15mr94200148vcb.41.1357910034894; Fri, 11 Jan 2013 05:13:54 -0800 (PST) X-Forwarded-To: linaro-patchwork@canonical.com X-Forwarded-For: patch@linaro.org linaro-patchwork@canonical.com Delivered-To: patches@linaro.org Received: by 10.58.145.101 with SMTP id st5csp111259veb; Fri, 11 Jan 2013 05:13:54 -0800 (PST) X-Received: by 10.180.20.198 with SMTP id p6mr15142869wie.19.1357910034019; Fri, 11 Jan 2013 05:13:54 -0800 (PST) Received: from mail-wi0-f181.google.com (mail-wi0-f181.google.com [209.85.212.181]) by mx.google.com with ESMTPS id bh9si16354711wib.43.2013.01.11.05.13.53 (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Fri, 11 Jan 2013 05:13:54 -0800 (PST) Received-SPF: neutral (google.com: 209.85.212.181 is neither permitted nor denied by best guess record for domain of lee.jones@linaro.org) client-ip=209.85.212.181; Authentication-Results: mx.google.com; spf=neutral (google.com: 209.85.212.181 is neither permitted nor denied by best guess record for domain of lee.jones@linaro.org) smtp.mail=lee.jones@linaro.org Received: by mail-wi0-f181.google.com with SMTP id hq4so1014586wib.2 for ; Fri, 11 Jan 2013 05:13:53 -0800 (PST) X-Received: by 10.194.236.166 with SMTP id uv6mr120793521wjc.34.1357910033650; Fri, 11 Jan 2013 05:13:53 -0800 (PST) Received: from localhost.localdomain (cpc1-aztw13-0-0-cust473.18-1.cable.virginmedia.com. [77.102.241.218]) by mx.google.com with ESMTPS id p2sm7204515wic.7.2013.01.11.05.13.52 (version=TLSv1.1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Fri, 11 Jan 2013 05:13:53 -0800 (PST) From: Lee Jones To: linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org Cc: arnd@arndb.de, linus.walleij@stericsson.com, cbouatmailru@gmail.com, Lee Jones Subject: [PATCH 18/18] power: ab8500_fg: Remove pointless round_jiffies() call Date: Fri, 11 Jan 2013 13:13:06 +0000 Message-Id: <1357909986-9262-19-git-send-email-lee.jones@linaro.org> X-Mailer: git-send-email 1.7.9.5 In-Reply-To: <1357909986-9262-1-git-send-email-lee.jones@linaro.org> References: <1357909986-9262-1-git-send-email-lee.jones@linaro.org> X-Gm-Message-State: ALoCoQk1RdrtR6S+TAiZm8MaeDFtm8P85cuG6o3LlhkHJROlrqQsy52kDpqA1Rp6oixksO9+njGp As HZ is a full-second, there is little point in rounding it. Let's save a few cycles by using HZ directly. Signed-off-by: Lee Jones --- drivers/power/ab8500_fg.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/power/ab8500_fg.c b/drivers/power/ab8500_fg.c index 4bc2c2d..a22f6ce 100644 --- a/drivers/power/ab8500_fg.c +++ b/drivers/power/ab8500_fg.c @@ -1854,7 +1854,7 @@ static void ab8500_fg_check_hw_failure_work(struct work_struct *work) } /* Not yet recovered from ovv, reschedule this test */ queue_delayed_work(di->fg_wq, &di->fg_check_hw_failure_work, - round_jiffies(HZ)); + HZ); } else { dev_dbg(di->dev, "Battery recovered from OVV\n"); di->flags.bat_ovv = false;