Skip to content

Commit dc62531

Browse files
Peng HaoKAGA-KOKO
authored andcommitted
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 <[email protected]> Signed-off-by: Thomas Gleixner <[email protected]> Cc: [email protected] Link: https://lkml.kernel.org/r/[email protected]
1 parent 9ac669f commit dc62531

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

kernel/time/tick-broadcast.c

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -400,8 +400,6 @@ void tick_broadcast_control(enum tick_broadcast_mode mode)
400400
if (tick_broadcast_forced)
401401
break;
402402
cpumask_clear_cpu(cpu, tick_broadcast_on);
403-
if (!tick_device_is_functional(dev))
404-
break;
405403
if (cpumask_test_and_clear_cpu(cpu, tick_broadcast_mask)) {
406404
if (tick_broadcast_device.mode ==
407405
TICKDEV_MODE_PERIODIC)

0 commit comments

Comments
 (0)