]> git.baikalelectronics.ru Git - kernel.git/commit
tick/sched : Remove redundant cpu_online() check
authorPeng Hao <peng.hao2@zte.com.cn>
Tue, 9 Oct 2018 15:43:35 +0000 (11:43 -0400)
committerThomas Gleixner <tglx@linutronix.de>
Wed, 10 Oct 2018 09:47:20 +0000 (11:47 +0200)
commitb6b106e30bcc57db39b1c128911556eec40c21d8
tree98351cd32bc4160eff3da32503e57cddb67c09eb
parent4f46e73a661582bf4aeb9ecb91c33c951ab126b3
tick/sched : Remove redundant cpu_online() check

can_stop_idle_tick() checks cpu_online() twice. The first check leaves the
function when the CPU is not online, so the second check it
redundant. Remove it.

Signed-off-by: Peng Hao <peng.hao2@zte.com.cn>
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Cc: fweisbec@gmail.com
Link: https://lkml.kernel.org/r/1539099815-2943-1-git-send-email-penghao122@sina.com.cn
kernel/time/tick-sched.c