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] [day] [month] [year] [list]
Message-ID: <tip-16c8f1c72ece3871a6c93003cd888fc2d003a7eb@git.kernel.org>
Date:	Thu, 24 Jan 2013 12:44:47 -0800
From:	tip-bot for Viresh Kumar <viresh.kumar@...aro.org>
To:	linux-tip-commits@...r.kernel.org
Cc:	linux-kernel@...r.kernel.org, hpa@...or.com, mingo@...nel.org,
	viresh.kumar@...aro.org, tglx@...utronix.de
Subject: [tip:sched/core] sched/fair: Set se->
 vruntime directly in place_entity()

Commit-ID:  16c8f1c72ece3871a6c93003cd888fc2d003a7eb
Gitweb:     http://git.kernel.org/tip/16c8f1c72ece3871a6c93003cd888fc2d003a7eb
Author:     Viresh Kumar <viresh.kumar@...aro.org>
AuthorDate: Thu, 8 Nov 2012 13:33:46 +0530
Committer:  Ingo Molnar <mingo@...nel.org>
CommitDate: Thu, 24 Jan 2013 18:06:11 +0100

sched/fair: Set se->vruntime directly in place_entity()

We are first storing the new vruntime in a variable and then
storing it in se->vruntime. Simply update se->vruntime directly.

Signed-off-by: Viresh Kumar <viresh.kumar@...aro.org>
Cc: linaro-dev@...ts.linaro.org
Cc: patches@...aro.org
Cc: peterz@...radead.org
Link: http://lkml.kernel.org/r/ae59db1945518d6f6250920d46eb1f1a9cc0024e.1352361704.git.viresh.kumar@linaro.org
Signed-off-by: Ingo Molnar <mingo@...nel.org>
---
 kernel/sched/fair.c | 4 +---
 1 file changed, 1 insertion(+), 3 deletions(-)

diff --git a/kernel/sched/fair.c b/kernel/sched/fair.c
index a7a19ff..8dbee9f 100644
--- a/kernel/sched/fair.c
+++ b/kernel/sched/fair.c
@@ -1680,9 +1680,7 @@ place_entity(struct cfs_rq *cfs_rq, struct sched_entity *se, int initial)
 	}
 
 	/* ensure we never gain time by being placed backwards. */
-	vruntime = max_vruntime(se->vruntime, vruntime);
-
-	se->vruntime = vruntime;
+	se->vruntime = max_vruntime(se->vruntime, vruntime);
 }
 
 static void check_enqueue_throttle(struct cfs_rq *cfs_rq);
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ