mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [PATCH]  tick: remove unnecssary check
@ 2018-09-28 16:03 Peng Hao
  2018-09-28 20:33 ` [tip:timers/core] tick/broadcast: Remove redundant check tip-bot for Peng Hao
  0 siblings, 1 reply; 2+ messages in thread
From: Peng Hao @ 2018-09-28 16:03 UTC (permalink / raw)
  To: fweisbec, tglx, mingo; +Cc: linux-kernel, Peng Hao


From: Peng Hao <peng.hao2@zte.com.cn>

tick_device_is_functional() has been called in the front of
tick_broadcast_control, so don't need call it again.

Signed-off-by: Peng Hao <peng.hao2@zte.com.cn>
---
 kernel/time/tick-broadcast.c | 4 +---
 1 file changed, 1 insertion(+), 3 deletions(-)

diff --git a/kernel/time/tick-broadcast.c b/kernel/time/tick-broadcast.c
index aa2094d..74637c2 100644
--- a/kernel/time/tick-broadcast.c
+++ b/kernel/time/tick-broadcast.c
@@ -399,9 +399,7 @@ void tick_broadcast_control(enum tick_broadcast_mode mode)
 	case TICK_BROADCAST_OFF:
 		if (tick_broadcast_forced)
 			break;
-		cpumask_clear_cpu(cpu, tick_broadcast_on);
-		if (!tick_device_is_functional(dev))
-			break;
+		cpumask_clear_cpu(cpu, tick_broadcast_on);
 		if (cpumask_test_and_clear_cpu(cpu, tick_broadcast_mask)) {
 			if (tick_broadcast_device.mode ==
 			    TICKDEV_MODE_PERIODIC)
-- 
1.8.3.1



^ permalink raw reply	[flat|nested] 2+ messages in thread

* [tip:timers/core] tick/broadcast: Remove redundant check
  2018-09-28 16:03 [PATCH] tick: remove unnecssary check Peng Hao
@ 2018-09-28 20:33 ` tip-bot for Peng Hao
  0 siblings, 0 replies; 2+ messages in thread
From: tip-bot for Peng Hao @ 2018-09-28 20:33 UTC (permalink / raw)
  To: linux-tip-commits; +Cc: tglx, linux-kernel, peng.hao2, mingo, hpa

Commit-ID:  dc6253108f0fbff4a634055d5b8a91958ec2af81
Gitweb:     https://git.kernel.org/tip/dc6253108f0fbff4a634055d5b8a91958ec2af81
Author:     Peng Hao <peng.hao2@zte.com.cn>
AuthorDate: Fri, 28 Sep 2018 12:03:28 -0400
Committer:  Thomas Gleixner <tglx@linutronix.de>
CommitDate: Fri, 28 Sep 2018 22:29:35 +0200

tick/broadcast: Remove redundant check

tick_device_is_functional() is called early in tick_broadcast_control(), so
no need to call it again later.

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/1538150608-2599-1-git-send-email-penghao122@sina.com.cn

---
 kernel/time/tick-broadcast.c | 2 --
 1 file changed, 2 deletions(-)

diff --git a/kernel/time/tick-broadcast.c b/kernel/time/tick-broadcast.c
index aa2094d5dd27..be0aac2b4300 100644
--- a/kernel/time/tick-broadcast.c
+++ b/kernel/time/tick-broadcast.c
@@ -400,8 +400,6 @@ void tick_broadcast_control(enum tick_broadcast_mode mode)
 		if (tick_broadcast_forced)
 			break;
 		cpumask_clear_cpu(cpu, tick_broadcast_on);
-		if (!tick_device_is_functional(dev))
-			break;
 		if (cpumask_test_and_clear_cpu(cpu, tick_broadcast_mask)) {
 			if (tick_broadcast_device.mode ==
 			    TICKDEV_MODE_PERIODIC)

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2018-09-28 20:34 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-09-28 16:03 [PATCH] tick: remove unnecssary check Peng Hao
2018-09-28 20:33 ` [tip:timers/core] tick/broadcast: Remove redundant check tip-bot for Peng Hao

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

Powered by JetHome