From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-10.3 required=3.0 tests=BAYES_00, HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_CR_TRAILER,MAILING_LIST_MULTI, NICE_REPLY_A,SPF_HELO_NONE,SPF_PASS,USER_AGENT_SANE_1 autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 4C5E2C433FE for ; Thu, 10 Dec 2020 15:59:58 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 1309823D50 for ; Thu, 10 Dec 2020 15:59:58 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2392105AbgLJP7g (ORCPT ); Thu, 10 Dec 2020 10:59:36 -0500 Received: from foss.arm.com ([217.140.110.172]:49748 "EHLO foss.arm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2391175AbgLJP7S (ORCPT ); Thu, 10 Dec 2020 10:59:18 -0500 Received: from usa-sjc-imap-foss1.foss.arm.com (unknown [10.121.207.14]) by usa-sjc-mx-foss1.foss.arm.com (Postfix) with ESMTP id 6882B1FB; Thu, 10 Dec 2020 07:58:32 -0800 (PST) Received: from [10.57.1.60] (unknown [10.57.1.60]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id 3AE103F68F; Thu, 10 Dec 2020 07:58:31 -0800 (PST) Subject: Re: [PATCH v2 2/4] thermal/core: Precompute the delays from msecs to jiffies To: Daniel Lezcano Cc: rui.zhang@intel.com, amitk@kernel.org, linux-kernel@vger.kernel.org, linux-pm@vger.kernel.org References: <20201207190902.30464-1-daniel.lezcano@linaro.org> <20201207190902.30464-2-daniel.lezcano@linaro.org> From: Lukasz Luba Message-ID: <5b440656-3f89-c6fc-652a-6538e82ee71f@arm.com> Date: Thu, 10 Dec 2020 15:58:29 +0000 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.9.0 MIME-Version: 1.0 In-Reply-To: <20201207190902.30464-2-daniel.lezcano@linaro.org> Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 12/7/20 7:09 PM, Daniel Lezcano wrote: > The delays are stored in ms units and when the polling function is > called this delay is converted into jiffies at each call. > > Instead of doing the conversion again and again, compute the jiffies > at init time and use the value directly when setting the polling. > > Signed-off-by: Daniel Lezcano > --- Reviewed-by: Lukasz Luba