diff options
author | Viresh Kumar <viresh.kumar@linaro.org> | 2015-07-16 07:26:22 -0400 |
---|---|---|
committer | Daniel Lezcano <daniel.lezcano@linaro.org> | 2015-08-10 05:41:01 -0400 |
commit | 032facef42a1a15be4a038e5e45819b941c2a6a8 (patch) | |
tree | dcc8c99d8954e5e3c31fcbd9f02f47d2c4f465a3 /arch/mn10300 | |
parent | 9797529d8981b2d2dce116ba7cf0641e13a5774b (diff) |
mn10300/cevt-mn10300: Migrate to new 'set-state' interface
Migrate mn10300 driver to the new 'set-state' interface provided by
clockevents core, the earlier 'set-mode' interface is marked obsolete
now.
This also enables us to implement callbacks for new states of clockevent
devices, for example: ONESHOT_STOPPED.
We weren't doing anything in the ->set_mode() callback. So, this patch
doesn't provide any set-state callbacks.
Cc: David Howells <dhowells@redhat.com>
Cc: Koichi Yasutake <yasutake.koichi@jp.panasonic.com>
Cc: linux-am33-list@redhat.com
Signed-off-by: Viresh Kumar <viresh.kumar@linaro.org>
Signed-off-by: Daniel Lezcano <daniel.lezcano@linaro.org>
Diffstat (limited to 'arch/mn10300')
-rw-r--r-- | arch/mn10300/kernel/cevt-mn10300.c | 7 |
1 files changed, 0 insertions, 7 deletions
diff --git a/arch/mn10300/kernel/cevt-mn10300.c b/arch/mn10300/kernel/cevt-mn10300.c index 60f64ca1752a..3aae9f5a98aa 100644 --- a/arch/mn10300/kernel/cevt-mn10300.c +++ b/arch/mn10300/kernel/cevt-mn10300.c | |||
@@ -41,12 +41,6 @@ static int next_event(unsigned long delta, | |||
41 | return 0; | 41 | return 0; |
42 | } | 42 | } |
43 | 43 | ||
44 | static void set_clock_mode(enum clock_event_mode mode, | ||
45 | struct clock_event_device *evt) | ||
46 | { | ||
47 | /* Nothing to do ... */ | ||
48 | } | ||
49 | |||
50 | static DEFINE_PER_CPU(struct clock_event_device, mn10300_clockevent_device); | 44 | static DEFINE_PER_CPU(struct clock_event_device, mn10300_clockevent_device); |
51 | static DEFINE_PER_CPU(struct irqaction, timer_irq); | 45 | static DEFINE_PER_CPU(struct irqaction, timer_irq); |
52 | 46 | ||
@@ -108,7 +102,6 @@ int __init init_clockevents(void) | |||
108 | 102 | ||
109 | cd->rating = 200; | 103 | cd->rating = 200; |
110 | cd->cpumask = cpumask_of(smp_processor_id()); | 104 | cd->cpumask = cpumask_of(smp_processor_id()); |
111 | cd->set_mode = set_clock_mode; | ||
112 | cd->event_handler = event_handler; | 105 | cd->event_handler = event_handler; |
113 | cd->set_next_event = next_event; | 106 | cd->set_next_event = next_event; |
114 | 107 | ||