Received: by 2002:a05:6358:45e:b0:b5:b6eb:e1f9 with SMTP id 30csp2375994rwe; Sun, 28 Aug 2022 09:46:17 -0700 (PDT) X-Google-Smtp-Source: AA6agR5cWurB/JcpQzM4yfPUm5N7n4dbZ5nMlsyxM0i4IWkKH69DXOkTUIkf/vk4IyDTvDfThqKX X-Received: by 2002:a17:907:3f04:b0:741:4bf4:fe42 with SMTP id hq4-20020a1709073f0400b007414bf4fe42mr4432480ejc.664.1661705177334; Sun, 28 Aug 2022 09:46:17 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1661705177; cv=none; d=google.com; s=arc-20160816; b=nIEiEUTZIJ5dzwRGsieCgdzESGG0CdxvcOBCaEHGgsrOIlRy4JS8vf/MnYsIjxzHUy f41JwLdiPygDH3c/JKuCQ0lmeLGonu+Yn5akLrm58YbtO8YJUGjHiMLxXQtCjBOfBzlh eCc60aCLn/cdPCq7LPLGSSstc6TK6Z4gXsoDu9HcJHd0e56lGCJzpoutSgJ6uu5SqtQu S/X0qbDicPswI0YSn7z40CtgWyKUEjjSDBAYGLnauiIU45pQSQiMVQ9qKEqbR45XLyMe UvUvS8vmLopQDjGY0SHmILeQZQ5G0R49g/8YiZd4dmPEIKeobiYTv6TE8FZ95y34resT SggQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:subject:cc:to:from:date :dkim-signature; bh=xLZO1efb3yATH4vwfCDPlmSiW9T/QCV9ZO5FUw00izk=; b=oDgP4zIMrMTJhjsHA1fwy3XcXUIN/M/57tSYfh5LBAsA6lxShdsjSXeZf0MgjnnpVK BrFqmQfVItbG87+Aq11vMpz8jbPfMaVY8W44C5U+dnwivN5Cw6/Fj1y29pAL5MMx+CW6 709Zt4KOYylMrolYl8Hz9NuzcgUGknWdkrx/nd9rpwnRJG19tHNlR+fXZ9KVSV+Vj4NH bN7C3osyrm08K3hfBv0CR+e1hVuOtq1HP53Mb/qcCcqs45lDkpD/LFHyRqLbERTuRLjB hB2OrL76jGN6ktDbwQEalX55+31ZR/eLNAiDXXP0i43LHGHAYXUf1S6DWlZGDXj423qj Klug== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=cR2REiNa; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id f22-20020a50a6d6000000b00447d566ae3bsi4914334edc.457.2022.08.28.09.45.51; Sun, 28 Aug 2022 09:46:17 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=cR2REiNa; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229500AbiH1QaO (ORCPT + 99 others); Sun, 28 Aug 2022 12:30:14 -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 X-Spam-Status: No, score=-7.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_HI, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@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