mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-29 03:01:39 -04:00
[PATCH] sched: use cached variable in sys_sched_yield()
In sys_sched_yield(), we cache current->array in the "array" variable, thus there's no need to dereference "current" again later. Signed-Off-By: Renaud Lienhart <[email protected]> Signed-off-by: Andrew Morton <[email protected]> Signed-off-by: Linus Torvalds <[email protected]>
This commit is contained in:
parent
5969fe0618
commit
5927ad78ec
1 changed files with 1 additions and 1 deletions
|
|
@ -3938,7 +3938,7 @@ asmlinkage long sys_sched_yield(void)
|
|||
if (rt_task(current))
|
||||
target = rq->active;
|
||||
|
||||
if (current->array->nr_active == 1) {
|
||||
if (array->nr_active == 1) {
|
||||
schedstat_inc(rq, yld_act_empty);
|
||||
if (!rq->expired->nr_active)
|
||||
schedstat_inc(rq, yld_both_empty);
|
||||
|
|
|
|||
Loading…
Reference in a new issue