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 Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id C7E59C0502A for ; Sun, 28 Aug 2022 16:30:14 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229606AbiH1QaN (ORCPT ); Sun, 28 Aug 2022 12:30:13 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:51164 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229648AbiH1QaM (ORCPT ); Sun, 28 Aug 2022 12:30:12 -0400 Received: from ams.source.kernel.org (ams.source.kernel.org [145.40.68.75]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 021597665; Sun, 28 Aug 2022 09:30:08 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ams.source.kernel.org (Postfix) with ESMTPS id 6886DB80A75; Sun, 28 Aug 2022 16:30:06 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 58A44C433C1; Sun, 28 Aug 2022 16:30:00 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1661704205; bh=hkP7Iyq9hIKsuHrAuDHR0IJBFhTR6IPli5jEcttyojE=; h=Date:From:To:Cc:Subject:In-Reply-To:References:From; b=cR2REiNat4p0xCuT1FMAu78W4EF/Mxkhpixo+uhTzTMJki6wNWwKjKV0iWMjV/CAM jtUnsJHG0vNVNn4YCqE9JXBqZ7MtvciMxrQ+Gnd6D/N+WSgkvKNZwKQL7moCMpEWsm fiMHV3ajyZe6xxgcAx1Tazb88PXMWw6uYb/WsxkRIEwfHfBO70IXDqufUEGN31mC52 Wy2D7LS4ZPz4cGQTwBgV2P2Hy2KbGB8lV4LapwMkg+iW4/lr6heyT/rhg0z6geFZb6 wDeg65X2EJJw/Z56blAZ+a58oC6iGofjfo70294bJV+e+tzbouyUnQOJUU/eJw1Dfo LSahyPGjnlgfw== Date: Sun, 28 Aug 2022 16:55:41 +0100 From: Jonathan Cameron To: Dmitry Rokosov Cc: "akpm@linux-foundation.org" , "robh+dt@kernel.org" , "andriy.shevchenko@linux.intel.com" , "andy.shevchenko@gmail.com" , "christophe.jaillet@wanadoo.fr" , "stano.jakubek@gmail.com" , "shawnguo@kernel.org" , "stephan@gerhold.net" , "daniel.lezcano@linaro.org" , "wsa@kernel.org" , "lars@metafoo.de" , "Michael.Hennerich@analog.com" , "jbhayana@google.com" , "lucas.demarchi@intel.com" , "jani.nikula@intel.com" , "linus.walleij@linaro.org" , "linux-iio@vger.kernel.org" , kernel , "devicetree@vger.kernel.org" , "linux-kernel@vger.kernel.org" , Andrew Morton Subject: Re: [PATCH v5 2/7] units: complement the set of Hz units Message-ID: <20220828165541.2cd81c97@jic23-huawei> In-Reply-To: <20220812165243.22177-3-ddrokosov@sberdevices.ru> References: <20220812165243.22177-1-ddrokosov@sberdevices.ru> <20220812165243.22177-3-ddrokosov@sberdevices.ru> X-Mailer: Claws Mail 4.1.0 (GTK 3.24.34; x86_64-pc-linux-gnu) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Precedence: bulk List-ID: X-Mailing-List: linux-iio@vger.kernel.org On Fri, 12 Aug 2022 16:52:26 +0000 Dmitry Rokosov wrote: > Currently, Hz units do not have milli, micro and nano Hz coefficients. > Some drivers (IIO especially) use their analogues to calculate > appropriate Hz values. This patch includes them to units.h definitions, > so they can be used from different kernel places. > > Signed-off-by: Dmitry Rokosov I'm not really sure why Andrew Morton picked these up as no obviously dependencies outside of IIO and we have other patches under review that need these. Anyhow, I see they are still in Andrew's nonmm-unstable tree, so assuming he won't mind me picking them up through IIO instead / as well. If nothing else git will sort this out when the two trees reach linux-next or upstream anyway. +Cc Andrew Morton. this and next two patches applied to the togreg branch of iio.git. I'll push that out as testing for 0-day to do it's sanity checks then it'll go out as iio.git / togreg and get picked up by linux-next. Thanks, Jonathan > --- > include/linux/units.h | 3 +++ > 1 file changed, 3 insertions(+) > > diff --git a/include/linux/units.h b/include/linux/units.h > index 681fc652e3d7..2793a41e73a2 100644 > --- a/include/linux/units.h > +++ b/include/linux/units.h > @@ -20,6 +20,9 @@ > #define PICO 1000000000000ULL > #define FEMTO 1000000000000000ULL > > +#define NANOHZ_PER_HZ 1000000000UL > +#define MICROHZ_PER_HZ 1000000UL > +#define MILLIHZ_PER_HZ 1000UL > #define HZ_PER_KHZ 1000UL > #define KHZ_PER_MHZ 1000UL > #define HZ_PER_MHZ 1000000UL