Skip to content

Commit 5c78b26

Browse files
vireshkDaniel Lezcano
authored andcommitted
clockevents/drivers/dummy_timer: Migrate to new 'set-state' interface
Migrate dummy_timer driver to the new 'set-state' interface provided by clockevents core, the earlier 'set-mode' interface is marked obsolete now. We weren't doing anything in the ->set_mode() callback. So, this patch doesn't provide any set-state callbacks. Cc: Mark Rutland <mark.rutland@arm.com> Signed-off-by: Viresh Kumae <viresh.kumar@linaro.org> Signed-off-by: Daniel Lezcano <daniel.lezcano@linaro.org>
1 parent bd88420 commit 5c78b26

1 file changed

Lines changed: 0 additions & 10 deletions

File tree

‎drivers/clocksource/dummy_timer.c‎

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -16,15 +16,6 @@
1616

1717
static DEFINE_PER_CPU(struct clock_event_device, dummy_timer_evt);
1818

19-
static void dummy_timer_set_mode(enum clock_event_mode mode,
20-
struct clock_event_device *evt)
21-
{
22-
/*
23-
* Core clockevents code will call this when exchanging timer devices.
24-
* We don't need to do anything here.
25-
*/
26-
}
27-
2819
static void dummy_timer_setup(void)
2920
{
3021
int cpu = smp_processor_id();
@@ -35,7 +26,6 @@ static void dummy_timer_setup(void)
3526
CLOCK_EVT_FEAT_ONESHOT |
3627
CLOCK_EVT_FEAT_DUMMY;
3728
evt->rating = 100;
38-
evt->set_mode = dummy_timer_set_mode;
3929
evt->cpumask = cpumask_of(cpu);
4030

4131
clockevents_register_device(evt);

0 commit comments

Comments
 (0)