projects
/
GitHub
/
moto-9609
/
android_kernel_motorola_exynos9610.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
3ea94de
)
sched/core: Use list_is_singular() in sched_can_stop_tick()
author
Geliang Tang
<geliangtang@163.com>
Sun, 15 Nov 2015 10:18:40 +0000
(18:18 +0800)
committer
Ingo Molnar
<mingo@kernel.org>
Mon, 23 Nov 2015 08:48:17 +0000
(09:48 +0100)
Use list_is_singular() to check if run_list has only one entry.
Signed-off-by: Geliang Tang <geliangtang@163.com>
Signed-off-by: Peter Zijlstra (Intel) <peterz@infradead.org>
Cc: Linus Torvalds <torvalds@linux-foundation.org>
Cc: Mike Galbraith <efault@gmx.de>
Cc: Peter Zijlstra <peterz@infradead.org>
Cc: Thomas Gleixner <tglx@linutronix.de>
Link:
http://lkml.kernel.org/r/a5453fafd735affcf28e53a1d0a3d6965cb5dbb5.1447582547.git.geliangtang@163.com
Signed-off-by: Ingo Molnar <mingo@kernel.org>
kernel/sched/core.c
patch
|
blob
|
blame
|
history
diff --git
a/kernel/sched/core.c
b/kernel/sched/core.c
index 1b7cb5e9581664b2b0acb6b7da432fa145688d10..5b420d29bce33e5b41ec8ed015a309f768fe1804 100644
(file)
--- a/
kernel/sched/core.c
+++ b/
kernel/sched/core.c
@@
-731,7
+731,7
@@
bool sched_can_stop_tick(void)
if (current->policy == SCHED_RR) {
struct sched_rt_entity *rt_se = ¤t->rt;
- return
rt_se->run_list.prev == rt_se->run_list.next
;
+ return
list_is_singular(&rt_se->run_list)
;
}
/*