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

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