lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <148767903084.5212.2021740645479315091.stgit@localhost.localdomain>
Date:   Tue, 21 Feb 2017 15:10:38 +0300
From:   Kirill Tkhai <ktkhai@...tuozzo.com>
To:     <peterz@...radead.org>, <mingo@...hat.com>,
        <linux-kernel@...r.kernel.org>, <ktkhai@...tuozzo.com>
Subject: [PATCH 2/3] sched/fair: Kill task_set_group_fair()

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

Signed-off-by: Kirill Tkhai <ktkhai@...tuozzo.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:

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ