Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp22288293rwd; Fri, 30 Jun 2023 06:21:00 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ5kNN9sqO7ACrmNFNgQ1eeH9jMjmMSLU780aRfHVJiGDILsM1536XCp6M6jOJVBYN3drXDv X-Received: by 2002:a05:6870:b628:b0:19f:21c3:9771 with SMTP id cm40-20020a056870b62800b0019f21c39771mr2663176oab.3.1688131260557; Fri, 30 Jun 2023 06:21:00 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1688131260; cv=none; d=google.com; s=arc-20160816; b=SNN3gxzzoljT8Wy0nkTAyEXfCTc0Jgnbb6Nn3capkk+eBVIg6+clM90ogdZnVT+xvD WIegc/23OxnlhwuRNg57lpnYVf/JpZIFdq/gSP2zzrbFK5vr2Jke64jKFzd4+zJcgIF2 5vGgKYRAZW7waycbHwbWZB9Tb61JSDkIvWe9Zayi4rCliUPHFIacvvs0K3avLRspT3NL C4dnUr92bXApmRf/pwKx1e394WuThLpBbU3lVuabmft5uPKNinp5VcyVOIEw8ctsa5ZR 3aa5ufXNFZtpzchYx0xBtkXSJa2kl8DGbpeYRbbLEQVScJrM3iRc+TbYhB6gJ0edCsPi Z8TA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:references:in-reply-to:message-id:date:subject :cc:to:from:dkim-signature; bh=NHIm92BTV7BBVxOejK81MiCgfI5TQ/btB7iA52HlrZk=; fh=9Ydj7+RFjlqCJxZiPKj6U4nvZEerCVySLgEqMxOtpuw=; b=CzIWakKBVSMlKl1EI2zu13L1WHe4KYImfjo7D84KghufYCxzXy36oWk3cwMivMT5E3 5UYDWR23kUptLq4/4e2q8QgH2fOAGXH7RGisE86s0eIyrtg66VMT0D0DsWjYlnpkh6aA C8rZX56Oh3a/1wn/l0hH4KTaSmgRJhO1AeijNakxEk0icjKt+S8llshJmJsAuCPBESF1 1bTLC8LCOfG4BHHlCZfLTcAmbs4LdrakwIf4pZ/QPTXGfwaFidqDXqmdOz7ilr/CO19W 8l2loGf5+wrRCH1p1LNvf8nCefvyuxvoYQMu/YJsp3PnBFFXOlVFZfwW4WEGlU1kXEZu GxCg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=f5ZmtkrV; spf=pass (google.com: domain of linux-crypto-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-crypto-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id j186-20020a638bc3000000b0054b4670f5e0si12277183pge.39.2023.06.30.06.20.23; Fri, 30 Jun 2023 06:21:00 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-crypto-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=@intel.com header.s=Intel header.b=f5ZmtkrV; spf=pass (google.com: domain of linux-crypto-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-crypto-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232492AbjF3NSU (ORCPT + 99 others); Fri, 30 Jun 2023 09:18:20 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:44924 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232480AbjF3NSR (ORCPT ); Fri, 30 Jun 2023 09:18:17 -0400 Received: from mga14.intel.com (mga14.intel.com [192.55.52.115]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id ADFB53A99; Fri, 30 Jun 2023 06:18:16 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1688131096; x=1719667096; h=from:to:cc:subject:date:message-id:in-reply-to: references; bh=4BFFIC3cYHlXoBbTQgw8k4pdIJX8J94Q2/BVdcLpp+0=; b=f5ZmtkrVd3opDw4weGhfbkqMLu324130nGP2b7/I6nYxH2MP+0nhdDi4 v/ZX/7OOkw6vGl4got10paFHcJ9sqr3IMGI6JSg3LRK/Ir7HWz3a0ZSp8 Cc06xpHWLkFIZ7LczNrB/yCZutQ/yWUVEgACj+oNS3fPhjswfBep1qP42 fe+bxBLU7/21XcN31LlEY2cCWY9tfCE01MMppnWJu5KW2VOe30qKgUdsZ eMBlM+OCmREcCMesvOSzi7p6S2jrhKq8HXj0xm/JBVKoimeMabMoCHWO8 uxZpavxnL8kiz9L3MarZ3E2SOUyv3EdyqBZ9aROnZPOPlHvE4OPRxbcNm g==; X-IronPort-AV: E=McAfee;i="6600,9927,10756"; a="362433153" X-IronPort-AV: E=Sophos;i="6.01,170,1684825200"; d="scan'208";a="362433153" Received: from fmsmga008.fm.intel.com ([10.253.24.58]) by fmsmga103.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 30 Jun 2023 06:18:15 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6600,9927,10756"; a="783077963" X-IronPort-AV: E=Sophos;i="6.01,170,1684825200"; d="scan'208";a="783077963" Received: from qat-server-archercity1.sh.intel.com ([10.67.111.115]) by fmsmga008.fm.intel.com with ESMTP; 30 Jun 2023 06:18:13 -0700 From: Xin Zeng To: linux-crypto@vger.kernel.org, kvm@vger.kernel.org Cc: giovanni.cabiddu@intel.com, andriy.shevchenko@linux.intel.com, Xin Zeng Subject: [RFC 3/5] units: Add HZ_PER_GHZ Date: Fri, 30 Jun 2023 21:13:02 +0800 Message-Id: <20230630131304.64243-4-xin.zeng@intel.com> X-Mailer: git-send-email 2.18.2 In-Reply-To: <20230630131304.64243-1-xin.zeng@intel.com> References: <20230630131304.64243-1-xin.zeng@intel.com> X-Spam-Status: No, score=-4.4 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_MED, SPF_HELO_NONE,SPF_NONE,T_SCC_BODY_TEXT_LINE,URIBL_BLOCKED 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-crypto@vger.kernel.org From: Andy Shevchenko There is going to be a new user of the HZ_PER_GHZ definition besides possibly existing ones. Add that one to the header. While at it, split Hz and kHz groups of the multipliers for better maintenance and readability. Signed-off-by: Andy Shevchenko Reviewed-by: Giovanni Cabiddu Signed-off-by: Xin Zeng --- include/linux/units.h | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/include/linux/units.h b/include/linux/units.h index 2793a41e73a2..8d1dd5609906 100644 --- a/include/linux/units.h +++ b/include/linux/units.h @@ -20,12 +20,16 @@ #define PICO 1000000000000ULL #define FEMTO 1000000000000000ULL +/* Hz based multipliers */ #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 +#define HZ_PER_GHZ 1000000000UL + +/* kHz based multipliers */ +#define KHZ_PER_MHZ 1000UL #define MILLIWATT_PER_WATT 1000UL #define MICROWATT_PER_MILLIWATT 1000UL -- 2.18.2