mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Kirill Tkhai <ktkhai@virtuozzo.com>
To: <peterz@infradead.org>, <mingo@redhat.com>,
	<linux-kernel@vger.kernel.org>, <ktkhai@virtuozzo.com>
Subject: [PATCH 2/3] sched/fair: Kill task_set_group_fair()
Date: Tue, 21 Feb 2017 15:10:38 +0300	[thread overview]
Message-ID: <148767903084.5212.2021740645479315091.stgit@localhost.localdomain> (raw)
In-Reply-To: <148767900991.5212.16341443539923627997.stgit@localhost.localdomain>

Now this is one-line function, which may be merged into task_change_group_fair().

Signed-off-by: Kirill Tkhai <ktkhai@virtuozzo.com>
---
 kernel/sched/fair.c |    7 +------
 1 file changed, 1 insertion(+), 6 deletions(-)

diff --git a/kernel/sched/fair.c b/kernel/sched/fair.c
index 33b46ca301f0..a005bee12e0b 100644
--- a/kernel/sched/fair.c
+++ b/kernel/sched/fair.c
@@ -9194,11 +9194,6 @@ void init_cfs_rq(struct cfs_rq *cfs_rq)
 }
 
 #ifdef CONFIG_FAIR_GROUP_SCHED
-static void task_set_group_fair(struct task_struct *p)
-{
-	set_task_rq(p, task_cpu(p));
-}
-
 static void task_move_group_fair(struct task_struct *p)
 {
 	detach_task_cfs_rq(p);
@@ -9215,7 +9210,7 @@ static void task_change_group_fair(struct task_struct *p, int type)
 {
 	switch (type) {
 	case TASK_SET_GROUP:
-		task_set_group_fair(p);
+		set_task_rq(p, task_cpu(p));
 		break;
 
 	case TASK_MOVE_GROUP:

  reply	other threads:[~2017-02-21 12:10 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-02-21 12:10 [PATCH 1/3] sched/fair: Set sched_entity::depth only when parent has changed Kirill Tkhai
2017-02-21 12:10 ` Kirill Tkhai [this message]
2017-02-21 12:10 ` [PATCH 3/3] sched/fair: Kill task_change_group_fair() Kirill Tkhai

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=148767903084.5212.2021740645479315091.stgit@localhost.localdomain \
    --to=ktkhai@virtuozzo.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=mingo@redhat.com \
    --cc=peterz@infradead.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®