From patchwork Sat Sep 11 03:48:02 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Alexei Lozovsky X-Patchwork-Id: 12486151 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=-18.7 required=3.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_CR_TRAILER, INCLUDES_PATCH,MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED, USER_AGENT_GIT 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 41955C433F5 for ; Sat, 11 Sep 2021 03:48:20 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 1ED7D61214 for ; Sat, 11 Sep 2021 03:48:20 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S235281AbhIKDt3 (ORCPT ); Fri, 10 Sep 2021 23:49:29 -0400 Received: from out5-smtp.messagingengine.com ([66.111.4.29]:42799 "EHLO out5-smtp.messagingengine.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232531AbhIKDt1 (ORCPT ); Fri, 10 Sep 2021 23:49:27 -0400 Received: from compute4.internal (compute4.nyi.internal [10.202.2.44]) by mailout.nyi.internal (Postfix) with ESMTP id 22DE15C0189; Fri, 10 Sep 2021 23:48:14 -0400 (EDT) Received: from mailfrontend1 ([10.202.2.162]) by compute4.internal (MEProxy); Fri, 10 Sep 2021 23:48:14 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ilammy.net; h= from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; s=fm2; bh=lMi0BKNLipyY8 mupcENzcBdBYS0W64a2lg2FY9qyhcQ=; b=N0a3vDvJ9PFW9IlXnNoO+0canqRJx UfhyyPQEXCnktRNUSpY+bjkeoOgglxnkURtWxqhF+b9BHtIvCYlqY0ynCmMnsTvt vMr54Gjr19weDBIIEoz3Kq3Yapg9LVWbiOwcOGz2/CqPaHi43R0EpjzmNc4bJxb/ 8zqNGikOO21q4Zt/OlG9S8OyOPPPOxVUdBywvUNPFZUPBo8pSFybH/n5FIpgI8y8 FVA1w5C/jRWhl7fXR2EU1QLEsTmCR4Adbp2XyyVhCzKhMvPJZ2T+LPJH9p32pTpO 1Q6QH0Q0KRfKRCOr0eVGDv1GfKoEkkjQ/YHXdVZYYBAU9v4PnvSFJSSsg== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-transfer-encoding:date:from :in-reply-to:message-id:mime-version:references:subject:to :x-me-proxy:x-me-proxy:x-me-sender:x-me-sender:x-sasl-enc; s= fm3; bh=lMi0BKNLipyY8mupcENzcBdBYS0W64a2lg2FY9qyhcQ=; b=v+4dSS8B xw6rXEFjQXxcVIUv6c1xx/e5t9kk2TeuwXZyCGKAJri63xSBVHe/RF3TtBuYJdwT u9eOAI5U2RaMtAjGGxF3dvQAQYWeEeVB9PnQNxRXxcIwUCtV/2a0mmh2vcMsSh7q 8Y/mdzojystgglikPKY4rUvFO1d7YHO8HqEYrOkrR9pfWdeMRRRAuzRAe5img+Xh AsVIXKM+Bec8071sv1lpFPDaL3B1bMfl33KX4t9nwVd6an5oL0fCH70V39r//PpM AidYTjHPZkX/6ITeMRySPGRR6/jk4gbqlItzhLSvIe39ug0fSRc7yyfHlikXFWKA hn6+24peo9BrzA== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvtddrudegvddgjeduucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnhhtshculddquddttddmne cujfgurhephffvufffkffojghfggfgsedtkeertdertddtnecuhfhrohhmpeetlhgvgigv ihcunfhoiihovhhskhihuceomhgvsehilhgrmhhmhidrnhgvtheqnecuggftrfgrthhtvg hrnhepteeujeehkeejueevieehgfeuheelleeggfehfefffeekjeduueejjeeugfetueek necuvehluhhsthgvrhfuihiivgeptdenucfrrghrrghmpehmrghilhhfrhhomhepmhgvse hilhgrmhhmhidrnhgvth X-ME-Proxy: Received: by mail.messagingengine.com (Postfix) with ESMTPA; Fri, 10 Sep 2021 23:48:12 -0400 (EDT) From: Alexei Lozovsky To: Thomas Gleixner Cc: Alexey Dobriyan , Christoph Lameter , LKML , linux-fsdevel@vger.kernel.org Subject: [PATCH 1/7] genirq: Use unsigned int for irqs_sum Date: Sat, 11 Sep 2021 12:48:02 +0900 Message-Id: <20210911034808.24252-2-me@ilammy.net> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20210911034808.24252-1-me@ilammy.net> References: <06F4B1B0-E4DE-4380-A8E1-A5ACAD285163@ilammy.net> <20210911034808.24252-1-me@ilammy.net> MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-fsdevel@vger.kernel.org It's read as unsigned int via kstat_cpu_irqs_sum() for /proc/stat. There is no point in having this counter wider than necessary. Signed-off-by: Alexei Lozovsky --- include/linux/kernel_stat.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/linux/kernel_stat.h b/include/linux/kernel_stat.h index 44ae1a7eb9e3..72818fb39ae8 100644 --- a/include/linux/kernel_stat.h +++ b/include/linux/kernel_stat.h @@ -36,7 +36,7 @@ struct kernel_cpustat { }; struct kernel_stat { - unsigned long irqs_sum; + unsigned int irqs_sum; unsigned int softirqs[NR_SOFTIRQS]; };