Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753213AbcD1Kib (ORCPT ); Thu, 28 Apr 2016 06:38:31 -0400 Received: from mga02.intel.com ([134.134.136.20]:49305 "EHLO mga02.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752465AbcD1Ki0 (ORCPT ); Thu, 28 Apr 2016 06:38:26 -0400 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.24,546,1455004800"; d="scan'208";a="964534435" From: Yuyang Du To: peterz@infradead.org, mingo@kernel.org, linux-kernel@vger.kernel.org Cc: bsegall@google.com, pjt@google.com, morten.rasmussen@arm.com, vincent.guittot@linaro.org, dietmar.eggemann@arm.com, juri.lelli@arm.com, Yuyang Du Subject: [PATCH 4/6] sched/fair: Add __always_inline compiler attribute to __accumulate_sum() Date: Thu, 28 Apr 2016 10:56:11 +0800 Message-Id: <1461812173-32439-5-git-send-email-yuyang.du@intel.com> X-Mailer: git-send-email 1.7.9.5 In-Reply-To: <1461812173-32439-1-git-send-email-yuyang.du@intel.com> References: <1461812173-32439-1-git-send-email-yuyang.du@intel.com> Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 677 Lines: 23 Everybody has it. If code-size is not the problem, __accumulate_sum() should have it too. Signed-off-by: Yuyang Du --- kernel/sched/fair.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/kernel/sched/fair.c b/kernel/sched/fair.c index abfe17a..486f098 100644 --- a/kernel/sched/fair.c +++ b/kernel/sched/fair.c @@ -2649,7 +2649,7 @@ static __always_inline u64 __decay_sum(u64 val, u32 n) * We can compute this efficiently by combining: * y^32 = 1/2 with precomputed \Sum 1024*y^n (where n < 32) */ -static u32 __accumulate_sum(u32 n) +static __always_inline u32 __accumulate_sum(u32 n) { u32 contrib = 0; -- 1.7.9.5