Skip to content

Commit 3d53cee

Browse files
committed
ARM: smp: Remove duplicate dummy timer implementation
Drop ARM's version of the dummy timer now that we have a generic implementation in drivers/clocksource. Acked-by: Marc Zyngier <marc.zyngier@arm.com> Cc: Russell King <linux@arm.linux.org.uk> Signed-off-by: Stephen Boyd <sboyd@codeaurora.org>
1 parent 42cba6e commit 3d53cee

1 file changed

Lines changed: 2 additions & 20 deletions

File tree

‎arch/arm/kernel/smp.c‎

Lines changed: 2 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -503,24 +503,6 @@ void tick_broadcast(const struct cpumask *mask)
503503
}
504504
#endif
505505

506-
static void broadcast_timer_set_mode(enum clock_event_mode mode,
507-
struct clock_event_device *evt)
508-
{
509-
}
510-
511-
static void __cpuinit broadcast_timer_setup(struct clock_event_device *evt)
512-
{
513-
evt->name = "dummy_timer";
514-
evt->features = CLOCK_EVT_FEAT_ONESHOT |
515-
CLOCK_EVT_FEAT_PERIODIC |
516-
CLOCK_EVT_FEAT_DUMMY;
517-
evt->rating = 100;
518-
evt->mult = 1;
519-
evt->set_mode = broadcast_timer_set_mode;
520-
521-
clockevents_register_device(evt);
522-
}
523-
524506
static struct local_timer_ops *lt_ops;
525507

526508
#ifdef CONFIG_LOCAL_TIMERS
@@ -544,8 +526,8 @@ static void __cpuinit percpu_timer_setup(void)
544526

545527
evt->cpumask = cpumask_of(cpu);
546528

547-
if (!lt_ops || lt_ops->setup(evt))
548-
broadcast_timer_setup(evt);
529+
if (lt_ops)
530+
lt_ops->setup(evt);
549531
}
550532

551533
#ifdef CONFIG_HOTPLUG_CPU

0 commit comments

Comments
 (0)