Received: by 2002:a05:6a10:a841:0:0:0:0 with SMTP id d1csp399314pxy; Thu, 22 Apr 2021 04:55:37 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwwctYzgWqYgk0kfrYFsEMYF/PqcMcqFqyu3v/ERD+za+zD3j9VX8BZLuGhmg0GLlsqD84j X-Received: by 2002:a05:6402:4245:: with SMTP id g5mr3366363edb.306.1619092537071; Thu, 22 Apr 2021 04:55:37 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1619092537; cv=none; d=google.com; s=arc-20160816; b=dGgE0IK732Y/CAbwcDboGc59vjvOozKn587SzOML4iCOnsrJSAHFSpAjaYsfBsceLr Vpa7T9cVjrohn/cdsVwtdbGfQS/31iDUO/aTS/FGbEvZrytTjwrQGD1d7sOTNzviIkwc yu/7n0aVYlE9sAnNFjOSw2QmiUEpAoRWeOxeH3R4VJVr9TmDE8Y0Fe8NF++6JJs8dLPu foQS7tdG5GUScAXMlyhaYeddB6bfwEWS+EGQULtwhUSERxqTmqao3qxLZ2PJNzf1M7ig fyImSC0+VB4b4HgQZ9Ua4iJQ4buJDxwh7xuanP2UAxjIk6sFX9S2o6Jj9lXl8XwjO0ii 5Q2g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=TTLq+a6lPOSqPm+zUeFMqc94vwjHRY0/Cq2Ry+KYykI=; b=rpZg760JCwlMmlq/fywtAE9Vy/veXOlvYKACoBm7RnchITYc7rLKXNpGcDldx3S7o+ 3XUaSfAQKPdtK+2iPOQCM2GeZ7zx1pgIiM6jW4SAfadhPl4RP68q2JVOMVDxMlJ6I3ro CIIpE5GyS0UkSFS2I6pAMGWtD5XR+0FMP7ceYWlg8VSQhsFlGNQLncJNhBu6vBAc0Rug QfE7lfZYIyyv/ut3ieDBE2PlrzQJyzmXpoQczJbzV5ZpHa5q/TB1yg4ToV1Y6s4N73T9 59fwQCm2qZHA0uF230LnsMQmpeAzLqajHUVx03kx8zG2ODLOYaANvGqEhOyaBLSsSCLA 33yg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@infradead.org header.s=desiato.20200630 header.b=ZRQxRQOf; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id n25si2074761edc.32.2021.04.22.04.55.13; Thu, 22 Apr 2021 04:55:37 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@infradead.org header.s=desiato.20200630 header.b=ZRQxRQOf; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S236028AbhDVLwl (ORCPT + 99 others); Thu, 22 Apr 2021 07:52:41 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:58344 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230510AbhDVLwk (ORCPT ); Thu, 22 Apr 2021 07:52:40 -0400 Received: from desiato.infradead.org (desiato.infradead.org [IPv6:2001:8b0:10b:1:d65d:64ff:fe57:4e05]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 913E7C06174A for ; Thu, 22 Apr 2021 04:52:05 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=desiato.20200630; h=In-Reply-To:Content-Type:MIME-Version: References:Message-ID:Subject:Cc:To:From:Date:Sender:Reply-To: Content-Transfer-Encoding:Content-ID:Content-Description; bh=TTLq+a6lPOSqPm+zUeFMqc94vwjHRY0/Cq2Ry+KYykI=; b=ZRQxRQOfhtd/VaASjBcyybKUIH PTahfOJA4D+Onk227drNM3gPTNTt5xedYPp2DBKg//kEfqF2debhVjZm9mO8Snv6l/HI3dqP7ZP/7 qLuHm4ZXlPNO5mp9WhEdiRCQHlGha9lPcxALmxEz6LSFYnr1eBbrIdctoDgFmxQMGAhNAjQX8Mmjf vm+i/QNKSxCCWYwR8zLhJICF2j5eFctRhUD9SXPMxYMZTCMNE+Js98JcC7as+DKSMXOKIXhKnQGkC AGe8L+H3O8GR8AO50mb1B2Wu5b2kabd25aTncU3QfctD+oAhlgoNqS2BD+29U1wsfNWMr+JilxWeR Cfd1Jmzw==; Received: from j217100.upc-j.chello.nl ([24.132.217.100] helo=noisy.programming.kicks-ass.net) by desiato.infradead.org with esmtpsa (Exim 4.94 #2 (Red Hat Linux)) id 1lZXsB-00GdEN-3f; Thu, 22 Apr 2021 11:51:55 +0000 Received: from hirez.programming.kicks-ass.net (hirez.programming.kicks-ass.net [192.168.1.225]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits)) (Client did not present a certificate) by noisy.programming.kicks-ass.net (Postfix) with ESMTPS id 3539F3001E2; Thu, 22 Apr 2021 13:51:54 +0200 (CEST) Received: by hirez.programming.kicks-ass.net (Postfix, from userid 1000) id 160E02C1AB5F8; Thu, 22 Apr 2021 13:51:54 +0200 (CEST) Date: Thu, 22 Apr 2021 13:51:54 +0200 From: Peter Zijlstra To: Hui Su Cc: mingo@redhat.com, juri.lelli@redhat.com, vincent.guittot@linaro.org, dietmar.eggemann@arm.com, rostedt@goodmis.org, bsegall@google.com, mgorman@suse.de, bristot@redhat.com, linux-kernel@vger.kernel.org Subject: Re: [PATCH] sched/fair.c: add helper func for util_avg and runnable_avg calc Message-ID: References: <20210422091416.19432-1-suhui@zeku.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20210422091416.19432-1-suhui@zeku.com> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Apr 22, 2021 at 05:14:16PM +0800, Hui Su wrote: > add helper func for util_avg and runnable_avg calc when entity > enqueue and dequeue. No functional change. > > without this change: > size vmlinux > text data bss dec hex filename > 19889268 6632812 2429160 28951240 1b9c2c8 vmlinux > size kernel/sched/fair.o > text data bss dec hex filename > 40044 1569 96 41709 a2ed kernel/sched/fair.o > ubuntu@zeku_server:~/workspace/linux-stable $ > > with this change: > size vmlinux > text data bss dec hex filename > 19889268 6632812 2429160 28951240 1b9c2c8 vmlinux > size kernel/sched/fair.o > text data bss dec hex filename > 40044 1569 96 41709 a2ed kernel/sched/fair.o > > Signed-off-by: Hui Su > --- > kernel/sched/fair.c | 48 +++++++++++++++++++++++++++++++++++++-------- > 1 file changed, 40 insertions(+), 8 deletions(-) So you're increasing line-count and clutter for absolutely no benefit. Why would we want that?