Message ID | 20190826204407.17759-10-daniel.lezcano@linaro.org |
---|---|
State | New |
Headers | show
Delivered-To: patch@linaro.org Received: by 2002:a92:d204:0:0:0:0:0 with SMTP id y4csp4863682ily; Mon, 26 Aug 2019 13:45:51 -0700 (PDT) X-Google-Smtp-Source: APXvYqwgHredUrFwdAE65ofuaCiPMHOJAK+PKz3RQeibXLdV+PQkvaPVQakdNuII+Gl/8xuUVA/g X-Received: by 2002:a65:654d:: with SMTP id a13mr17873295pgw.196.1566852351650; Mon, 26 Aug 2019 13:45:51 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1566852351; cv=none; d=google.com; s=arc-20160816; b=nmpzB3fbmk731s+n0oIct6U4MM8bShh75azftWAumFLkCJr3yqblfTTpfmTQw58xw6 tCssOaUlCo3b1WO8jUfmOYLm48NcOom7ld+UsRBDFFohi0hSpmXk9gdhaamftEh86ac1 iyNEoSHXAXIgssplBMqNriYjLJ6j06gdF1w7xGrf1+7a4qARefj9d4efIi1mIzZvW/9Y wq2/nSuqhM/0THVRNEFP3MbzYRg53ElsskoaOGTjfBINrNvN/kun2U0OV0zdoqz82jeN /aVbHNspBwRSaiAI1WtlSR2dsLOap5f4XjN13kN1qgwvRU047ibZXJFObgVdMHEqNYsI TksA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:references:in-reply-to:message-id:date :subject:cc:to:from:dkim-signature; bh=FoQUNs6EXC98c6qNkjKAv+h1NQz6LneBfiroF9aLlEY=; b=BsmqlvyAAm4pJ1/N2E8qsSMSjQGhUbcctmS0DgLrLEUvSQ+xhbaUO4ciFZkOCltrSP Yie8CjEqrzhy4k47l0Jl+moZDzRZuNp5B+4/E5HvxqJ3mY+sebscj5Y/jhj848bSkCKU bLi7RZPHnizeQb0ZuBP6drFLwQSbyiUuyn17cte4eUoyIkf5JNkkZE7xjknL8MNdgB0T jwYieUnKGNK4ZZrpf2djWbJ+u0TF9sdO00YxRckC5peaOxnehwRI9SZgBw0YDD1XlLY1 12jYAM2QRxdgKMXdtikMpYX+KwLHvsZavR5Ac/mm3F86iCq9hbxpHoZp4qPC/WVJQ0qj RtVA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=jPW1jRGN; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: <linux-kernel-owner@vger.kernel.org> Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id n11si576523pjb.36.2019.08.26.13.45.51; Mon, 26 Aug 2019 13:45:51 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=jPW1jRGN; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1731316AbfHZUpK (ORCPT <rfc822;mike.holmes@linaro.org> + 28 others); Mon, 26 Aug 2019 16:45:10 -0400 Received: from mail-wm1-f66.google.com ([209.85.128.66]:53724 "EHLO mail-wm1-f66.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1730644AbfHZUpH (ORCPT <rfc822;linux-kernel@vger.kernel.org>); Mon, 26 Aug 2019 16:45:07 -0400 Received: by mail-wm1-f66.google.com with SMTP id 10so794890wmp.3 for <linux-kernel@vger.kernel.org>; Mon, 26 Aug 2019 13:45:05 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=FoQUNs6EXC98c6qNkjKAv+h1NQz6LneBfiroF9aLlEY=; b=jPW1jRGNr3AnUe8RjuZmRCXkYAzsbzMhz32nq0OWWy1zpvhbhiDiAAuRPeiyVl491V cCLcdpNtFLqim8SyephS7b9b9ko8sszl0kvNj9BUd6h/QBPgHXF6o+PKgNQPiVfYIRFH B5PaOVC29nRY9kNRjKZOXYVORKwkhwB4w6wIQfyh5qoOxK8zLHitQH33/0d6bWm9f+Hp jXHkDDm3osu6MOCTwW7J2wI7rENToUJpJEwajOTRQlt9CP252Ej6QkLEf/vKr4EMYtlw qSq1d5xHTNDG2TjA+3gjsTNtCTSGd3PgMPfHdHP33PAXjh10wjQNIX5E0VjydN1qN6wD 2U1A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=FoQUNs6EXC98c6qNkjKAv+h1NQz6LneBfiroF9aLlEY=; b=btnqkaIZGMoXWn1j+ENn3aqzTK4hmkgTEMce5YYF8e/lN4Vfixi4UuN3SzEWE4QBsY aUrmHDKrcAHfBVMSsCZHylSpWwQKvwCX1SmUI5GLPGlZyJ89ohEBuf4jR/TKxLtVym2y 5cg/+GuUtMPtp5Igqax+emmMYo0Xo95tOtHpUp1zqDr8P1LIzOCASN88gyYzHOv1puZU LCsOlvCRvAPMJZAd2e/q8sLTfJUD4UBqLkeII5IxuaNoVMseRFXtQQvnEKS25Ywxx9p2 tkIyHZhq1Qn7Aqgn5qnvmQJgZRLHpKbe0iTw3AHzqwTzE7TWXkBGG1VOk3ayXW8rPGln Atjw== X-Gm-Message-State: APjAAAVTF+a+qUPnn9HPyMhYLB0Sq+0HpYe8J2WxLmEhmrqZ+l+R+INf B+d2jOh3eCVRUhzyVwLStpT14bdOpYY= X-Received: by 2002:a7b:c8c1:: with SMTP id f1mr21953351wml.87.1566852304570; Mon, 26 Aug 2019 13:45:04 -0700 (PDT) Received: from mai.imgcgcw.net ([2a01:e34:ed2f:f020:f881:f5ed:b15d:96ab]) by smtp.gmail.com with ESMTPSA id 20sm549557wmk.34.2019.08.26.13.45.03 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 26 Aug 2019 13:45:03 -0700 (PDT) From: Daniel Lezcano <daniel.lezcano@linaro.org> To: tglx@linutronix.de Cc: linux-kernel@vger.kernel.org, Geert Uytterhoeven <geert+renesas@glider.be>, Maxime Coquelin <mcoquelin.stm32@gmail.com>, Alexandre Torgue <alexandre.torgue@st.com>, linux-stm32@st-md-mailman.stormreply.com (moderated list:ARM/STM32 ARCHITECTURE), linux-arm-kernel@lists.infradead.org (moderated list:ARM/STM32 ARCHITECTURE) Subject: [PATCH 10/20] clocksource/drivers/renesas-ostm: Use DIV_ROUND_CLOSEST() helper Date: Mon, 26 Aug 2019 22:43:57 +0200 Message-Id: <20190826204407.17759-10-daniel.lezcano@linaro.org> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20190826204407.17759-1-daniel.lezcano@linaro.org> References: <df27caba-d9f8-e64d-0563-609f8785ecb3@linaro.org> <20190826204407.17759-1-daniel.lezcano@linaro.org> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: <linux-kernel.vger.kernel.org> X-Mailing-List: linux-kernel@vger.kernel.org |
Series |
[01/20] clocksource: Remove dev_err() usage after platform_get_irq()
|
expand
|
diff --git a/drivers/clocksource/renesas-ostm.c b/drivers/clocksource/renesas-ostm.c index 61d5f3b539ce..37c39b901bb1 100644 --- a/drivers/clocksource/renesas-ostm.c +++ b/drivers/clocksource/renesas-ostm.c @@ -221,7 +221,7 @@ static int __init ostm_init(struct device_node *np) } rate = clk_get_rate(ostm_clk); - ostm->ticks_per_jiffy = (rate + HZ / 2) / HZ; + ostm->ticks_per_jiffy = DIV_ROUND_CLOSEST(rate, HZ); /* * First probed device will be used as system clocksource. Any