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=-13.8 required=3.0 tests=BAYES_00, HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_CR_TRAILER,INCLUDES_PATCH, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED 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 926B7C433DB for ; Thu, 25 Feb 2021 11:24:40 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 3E56C64EF5 for ; Thu, 25 Feb 2021 11:24:40 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S235483AbhBYLYX (ORCPT ); Thu, 25 Feb 2021 06:24:23 -0500 Received: from mga14.intel.com ([192.55.52.115]:34043 "EHLO mga14.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235087AbhBYLYT (ORCPT ); Thu, 25 Feb 2021 06:24:19 -0500 IronPort-SDR: 9vxlhA1xzPmK06eGmGTXNlHj3Y+QZp6Ha7wHw4abiJ5jhzd0WHhmbr9MkHzB85VVhCQI43dzh1 0ItD25eMZ8uQ== X-IronPort-AV: E=McAfee;i="6000,8403,9905"; a="184790913" X-IronPort-AV: E=Sophos;i="5.81,205,1610438400"; d="scan'208";a="184790913" Received: from orsmga001.jf.intel.com ([10.7.209.18]) by fmsmga103.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 25 Feb 2021 03:22:30 -0800 IronPort-SDR: 7tPITnpAE9/TVffope+8kG9rgHzjZbcByJ6o53pZuL2vgHpXo4cpHVuTFDFFNwJQ7lDum2RRia e1Utm8bZVkhw== X-IronPort-AV: E=Sophos;i="5.81,205,1610438400"; d="scan'208";a="442532278" Received: from smile.fi.intel.com (HELO smile) ([10.237.68.40]) by orsmga001-auth.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 25 Feb 2021 03:22:29 -0800 Received: from andy by smile with local (Exim 4.94) (envelope-from ) id 1lFEiw-0080Ln-6R; Thu, 25 Feb 2021 13:22:26 +0200 Date: Thu, 25 Feb 2021 13:22:26 +0200 From: Andy Shevchenko To: Daniel Lezcano Cc: rafael@kernel.org, linux-kernel@vger.kernel.org, Christian Eggers , "Rafael J. Wysocki" , Lukasz Luba Subject: Re: [PATCH v2 1/9] units: Add the HZ macros Message-ID: References: <20210224144222.23762-1-daniel.lezcano@linaro.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20210224144222.23762-1-daniel.lezcano@linaro.org> Organization: Intel Finland Oy - BIC 0357606-4 - Westendinkatu 7, 02160 Espoo Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Feb 24, 2021 at 03:42:11PM +0100, Daniel Lezcano wrote: > The macros for the unit conversion for frequency are duplicated in > different places. > > Provide these macros in the 'units' header, so they can be reused. For the all that have not been tagged: Reviewed-by: Andy Shevchenko Thanks! > Signed-off-by: Daniel Lezcano > Reviewed-by: Christian Eggers > Reviewed-by: Andy Shevchenko > --- > include/linux/units.h | 4 ++++ > 1 file changed, 4 insertions(+) > > diff --git a/include/linux/units.h b/include/linux/units.h > index dcc30a53fa93..218ec0d314b6 100644 > --- a/include/linux/units.h > +++ b/include/linux/units.h > @@ -4,6 +4,10 @@ > > #include > > +#define HZ_PER_KHZ 1000L > +#define KHZ_PER_MHZ 1000L > +#define HZ_PER_MHZ 1000000L > + > #define MILLIWATT_PER_WATT 1000L > #define MICROWATT_PER_MILLIWATT 1000L > #define MICROWATT_PER_WATT 1000000L > -- > 2.17.1 > -- With Best Regards, Andy Shevchenko