[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-Id: <1538150608-2599-1-git-send-email-penghao122@sina.com.cn>
Date: Fri, 28 Sep 2018 12:03:28 -0400
From: Peng Hao <penghao122@...a.com.cn>
To: fweisbec@...il.com, tglx@...utronix.de, mingo@...nel.org
Cc: linux-kernel@...r.kernel.org, Peng Hao <peng.hao2@....com.cn>
Subject: [PATCH] tick: remove unnecssary check
From: Peng Hao <peng.hao2@....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@....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
Powered by blists - more mailing lists