Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1459734

[PATCH v1 03/10] sched/fair: Add static to remove_entity_load_avg()

Path csiph.com!news.mixmin.net!aioe.org!bofh.it!news.nic.it!robomod
From Yuyang Du <yuyang.du@intel.com>
Newsgroups linux.kernel
Subject [PATCH v1 03/10] sched/fair: Add static to remove_entity_load_avg()
Date Wed, 10 Aug 2016 22:00:02 +0200
Message-ID <s4HPs-16w-15@gated-at.bofh.it> (permalink)
References <s4GA2-f8-9@gated-at.bofh.it>
X-Extloop1 1
X-Ironport-Av E=Sophos;i="5.28,498,1464678000"; d="scan'208";a="1011741934"
X-Mailer git-send-email 1.7.9.5
Sender robomod@news.nic.it
List-ID <linux-kernel.vger.kernel.org>
X-Mailing-List linux-kernel@vger.kernel.org
Approved robomod@news.nic.it
Lines 22
Organization linux.* mail to news gateway
X-Original-Cc bsegall@google.com, pjt@google.com, morten.rasmussen@arm.com, vincent.guittot@linaro.org, dietmar.eggemann@arm.com, matt@codeblueprint.co.uk, umgwanakikbuti@gmail.com, Yuyang Du <yuyang.du@intel.com>
X-Original-Date Wed, 10 Aug 2016 08:14:48 +0800
X-Original-Message-ID <1470788095-2125-4-git-send-email-yuyang.du@intel.com>
X-Original-References <1470788095-2125-1-git-send-email-yuyang.du@intel.com>
X-Original-Sender linux-kernel-owner@vger.kernel.org
Xref csiph.com linux.kernel:1459734

Show key headers only | View raw


remove_entity_load_avg() is only called in fair.c, so add static to it.

Signed-off-by: Yuyang Du <yuyang.du@intel.com>
---
 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 997297b..dad1ba5 100644
--- a/kernel/sched/fair.c
+++ b/kernel/sched/fair.c
@@ -3115,7 +3115,7 @@ static inline u64 cfs_rq_last_update_time(struct cfs_rq *cfs_rq)
  * Task first catches up with cfs_rq, and then subtract
  * itself from the cfs_rq (task must be off the queue now).
  */
-void remove_entity_load_avg(struct sched_entity *se)
+static void remove_entity_load_avg(struct sched_entity *se)
 {
 	struct cfs_rq *cfs_rq = cfs_rq_of(se);
 	u64 last_update_time;
-- 
1.7.9.5

Back to linux.kernel | Previous | Next | Find similar | Unroll thread


Thread

[PATCH v1 03/10] sched/fair: Add static to remove_entity_load_avg() Yuyang Du <yuyang.du@intel.com> - 2016-08-10 22:00 +0200

csiph-web