Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

s390/time: Migrate to new 'set-state' interface

Migrate s390 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: Martin Schwidefsky <schwidefsky@de.ibm.com>
Cc: Heiko Carstens <heiko.carstens@de.ibm.com>
Cc: linux390@de.ibm.com
Cc: linux-s390@vger.kernel.org
Signed-off-by: Viresh Kumar <viresh.kumar@linaro.org>
Signed-off-by: Daniel Lezcano <daniel.lezcano@linaro.org>

authored by

Viresh Kumar and committed by
Daniel Lezcano
07aeed3f 37a13e78

-6
-6
arch/s390/kernel/time.c
··· 117 117 return 0; 118 118 } 119 119 120 - static void s390_set_mode(enum clock_event_mode mode, 121 - struct clock_event_device *evt) 122 - { 123 - } 124 - 125 120 /* 126 121 * Set up lowcore and control register of the current cpu to 127 122 * enable TOD clock and clock comparator interrupts. ··· 140 145 cd->rating = 400; 141 146 cd->cpumask = cpumask_of(cpu); 142 147 cd->set_next_event = s390_next_event; 143 - cd->set_mode = s390_set_mode; 144 148 145 149 clockevents_register_device(cd); 146 150