diff options
author | Wen Yang <wen.yang99@zte.com.cn> | 2018-02-06 09:53:28 +0800 |
---|---|---|
committer | Ingo Molnar <mingo@kernel.org> | 2018-02-13 11:44:41 +0100 |
commit | a7711602c7b79950ea437178f601b52ab08ef659 (patch) | |
tree | aaa36c553654b2cd4499c8f3be505e173d03ff16 /kernel/sched/core.c | |
parent | 6fe0ce1eb04f99a1eb1eb6e7f775666966cf6c80 (diff) | |
download | lwn-a7711602c7b79950ea437178f601b52ab08ef659.tar.gz lwn-a7711602c7b79950ea437178f601b52ab08ef659.zip |
sched/rt: Make update_curr_rt() more accurate
rq->clock_task may be updated between the two calls of
rq_clock_task() in update_curr_rt(). Calling rq_clock_task() only
once makes it more accurate and efficient, taking update_curr() as
reference.
Signed-off-by: Wen Yang <wen.yang99@zte.com.cn>
Signed-off-by: Peter Zijlstra (Intel) <peterz@infradead.org>
Reviewed-by: Jiang Biao <jiang.biao2@zte.com.cn>
Cc: Linus Torvalds <torvalds@linux-foundation.org>
Cc: Peter Zijlstra <peterz@infradead.org>
Cc: Thomas Gleixner <tglx@linutronix.de>
Cc: zhong.weidong@zte.com.cn
Link: http://lkml.kernel.org/r/1517882008-44552-1-git-send-email-wen.yang99@zte.com.cn
Signed-off-by: Ingo Molnar <mingo@kernel.org>
Diffstat (limited to 'kernel/sched/core.c')
0 files changed, 0 insertions, 0 deletions