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 E240AECAAD4 for ; Mon, 29 Aug 2022 21:06:21 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229541AbiH2VGT (ORCPT ); Mon, 29 Aug 2022 17:06:19 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:40232 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229508AbiH2VGQ (ORCPT ); Mon, 29 Aug 2022 17:06:16 -0400 Received: from ams.source.kernel.org (ams.source.kernel.org [145.40.68.75]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 6D3FF7B2B9; Mon, 29 Aug 2022 14:06:15 -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 2B198B81162; Mon, 29 Aug 2022 21:06:14 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 2ED93C433D6; Mon, 29 Aug 2022 21:06:12 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linux-foundation.org; s=korg; t=1661807172; bh=0mcDMWOHxrfD5Tv/P4qNMYR0C9A+FHsaDwMm2tRHyOM=; h=Date:From:To:Cc:Subject:In-Reply-To:References:From; b=0HTX24J+z5lpQJxLBuCvnFqrtnc+m7Vi5tt1i5mJZT0I+7158lB99II5Lb+fqWnKr wemh3r02eTFtMPMyWI74fu2J49hU+J4ADZfvOZrxYCukzVsSF7oAVrHOeYfZ4ZqALt m6c9b/ZJo4L8YJUrb1AJUqcUG0YzBhKk9Tw/htqA= Date: Mon, 29 Aug 2022 14:06:11 -0700 From: Andrew Morton To: Jonathan Cameron Cc: Dmitry Rokosov , "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" Subject: Re: [PATCH v5 2/7] units: complement the set of Hz units Message-Id: <20220829140611.5816d090c4505740a97b8918@linux-foundation.org> In-Reply-To: <20220828165541.2cd81c97@jic23-huawei> References: <20220812165243.22177-1-ddrokosov@sberdevices.ru> <20220812165243.22177-3-ddrokosov@sberdevices.ru> <20220828165541.2cd81c97@jic23-huawei> X-Mailer: Sylpheed 3.7.0 (GTK+ 2.24.33; x86_64-redhat-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-kernel@vger.kernel.org On Sun, 28 Aug 2022 16:55:41 +0100 Jonathan Cameron wrote: > 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