Skip to content

Commit 6cc73a0

Browse files
committed
s390: cmm: Convert timers to use timer_setup()
In preparation for unconditionally passing the struct timer_list pointer to all timer callbacks, switch to using the new timer_setup() and from_timer() to pass the timer pointer explicitly. Cc: Martin Schwidefsky <[email protected]> Cc: Heiko Carstens <[email protected]> Cc: Thomas Gleixner <[email protected]> Cc: Geert Uytterhoeven <[email protected]> Cc: Arnd Bergmann <[email protected]> Cc: Guenter Roeck <[email protected]> Cc: Paul Gortmaker <[email protected]> Cc: [email protected] Signed-off-by: Kees Cook <[email protected]>
1 parent 87c1d2d commit 6cc73a0

File tree

1 file changed

+3
-5
lines changed

1 file changed

+3
-5
lines changed

arch/s390/mm/cmm.c

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -56,10 +56,10 @@ static DEFINE_SPINLOCK(cmm_lock);
5656

5757
static struct task_struct *cmm_thread_ptr;
5858
static DECLARE_WAIT_QUEUE_HEAD(cmm_thread_wait);
59-
static DEFINE_TIMER(cmm_timer, NULL);
6059

61-
static void cmm_timer_fn(unsigned long);
60+
static void cmm_timer_fn(struct timer_list *);
6261
static void cmm_set_timer(void);
62+
static DEFINE_TIMER(cmm_timer, cmm_timer_fn);
6363

6464
static long cmm_alloc_pages(long nr, long *counter,
6565
struct cmm_page_array **list)
@@ -194,13 +194,11 @@ static void cmm_set_timer(void)
194194
if (mod_timer(&cmm_timer, jiffies + cmm_timeout_seconds*HZ))
195195
return;
196196
}
197-
cmm_timer.function = cmm_timer_fn;
198-
cmm_timer.data = 0;
199197
cmm_timer.expires = jiffies + cmm_timeout_seconds*HZ;
200198
add_timer(&cmm_timer);
201199
}
202200

203-
static void cmm_timer_fn(unsigned long ignored)
201+
static void cmm_timer_fn(struct timer_list *unused)
204202
{
205203
long nr;
206204

0 commit comments

Comments
 (0)