[PATCH] tick: remove unnecssary check
From: Peng Hao
Date: Fri Sep 28 2018 - 12:13:19 EST
From: Peng Hao <peng.hao2@xxxxxxxxxx>
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@xxxxxxxxxx>
---
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