diff options
author | Wen Yang <[email protected]> | 2018-02-05 11:18:41 +0800 |
---|---|---|
committer | Ingo Molnar <[email protected]> | 2018-02-06 10:20:34 +0100 |
commit | e7ad203166fff89b1d8253faf68fbe6966bf7181 (patch) | |
tree | 80a3b9f71dfac9f1a4d1d0ed7399e663e7c1b403 /net/switchdev/switchdev.c | |
parent | 364f56653708ba8bcdefd4f0da2a42904baa8eeb (diff) |
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 <[email protected]>
Signed-off-by: Peter Zijlstra (Intel) <[email protected]>
Reviewed-by: Jiang Biao <[email protected]>
Cc: Linus Torvalds <[email protected]>
Cc: Mike Galbraith <[email protected]>
Cc: Peter Zijlstra <[email protected]>
Cc: Thomas Gleixner <[email protected]>
Cc: [email protected]
Link: http://lkml.kernel.org/r/[email protected]
Signed-off-by: Ingo Molnar <[email protected]>
Diffstat (limited to 'net/switchdev/switchdev.c')
0 files changed, 0 insertions, 0 deletions