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: 1966111 Return-Path: X-Original-To: patchwork-linux-arm@patchwork.kernel.org Delivered-To: patchwork-process-083081@patchwork1.kernel.org Received: from merlin.infradead.org (merlin.infradead.org [205.233.59.134]) by patchwork1.kernel.org (Postfix) with ESMTP id C0F3C3FF0F for ; Fri, 11 Jan 2013 13:26:31 +0000 (UTC) Received: from localhost ([::1] helo=merlin.infradead.org) by merlin.infradead.org with esmtp (Exim 4.76 #1 (Red Hat Linux)) id 1TteYT-00072t-R8; Fri, 11 Jan 2013 13:21:55 +0000 Received: from mail-we0-f177.google.com ([74.125.82.177]) by merlin.infradead.org with esmtps (Exim 4.76 #1 (Red Hat Linux)) id 1TteQm-0001X4-8l for linux-arm-kernel@lists.infradead.org; Fri, 11 Jan 2013 13:13:57 +0000 Received: by mail-we0-f177.google.com with SMTP id x48so838084wey.22 for ; Fri, 11 Jan 2013 05:13:53 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=x-received:from:to:cc:subject:date:message-id:x-mailer:in-reply-to :references:x-gm-message-state; bh=8Ct/hvvuVQeIxIWmuyuH9Yim8hXdaQqvvsiEsRemXuw=; b=ZgNsX3Ic5GfLJTMAbz40xHBJK8kiPlY9CBd/bch2SGWKFCpGOIH4Xp/Nvu/SqCvgfX 8tVKN2gshXpEeGh2UxkL0vfY8NKwERWpZSRHJjyJzJnH3E/T0FIBvp1CjJYQxy71okfI 9g4cDWfvVdsluzS3t2ik7AAPvAwM54YS3w+jjUMVpxdKBi/OVHuCkNkoJDeE5O3ZaqY6 +NpELjLSn4tVSo5ihMDinIQ/GHMMnWdvVl2K5UYA0YqmaS0UO3a7M88LJEhZs6TCCmGw fX6lgOukg3xqYSLGhUZS/LO3iiX+J71lHO8uvBSRHqoe6kxjz9baoaBCchOH7Pnh9J86 5zSw== 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 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: ALoCoQn7mmviXBmSIivFWiBR10qvlHHhJEblP/x27nRPLG1oYxWGE3sIpqHb3UCdr8u2uGTib5Pz X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20130111_081356_610285_CF7D196B X-CRM114-Status: GOOD ( 11.91 ) X-Spam-Score: -2.6 (--) X-Spam-Report: SpamAssassin version 3.3.2 on merlin.infradead.org summary: Content analysis details: (-2.6 points) pts rule name description ---- ---------------------- -------------------------------------------------- -0.7 RCVD_IN_DNSWL_LOW RBL: Sender listed at http://www.dnswl.org/, low trust [74.125.82.177 listed in list.dnswl.org] -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% [score: 0.0000] Cc: Lee Jones , linus.walleij@stericsson.com, arnd@arndb.de, cbouatmailru@gmail.com X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Sender: linux-arm-kernel-bounces@lists.infradead.org Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org 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;