[PATCH] Char: istallion, use mod_timer
Do not set expires by hand, use kernel helper, which also calls add_timer. Signed-off-by: Jiri Slaby <jirislaby@gmail.com> Cc: Alan Cox <alan@lxorguk.ukuu.org.uk> Signed-off-by: Andrew Morton <akpm@osdl.org> Signed-off-by: Linus Torvalds <torvalds@osdl.org>
This commit is contained in:
parent
ec3dde578a
commit
ff8efe978d
@ -2545,8 +2545,7 @@ static void stli_poll(unsigned long arg)
|
|||||||
struct stlibrd *brdp;
|
struct stlibrd *brdp;
|
||||||
unsigned int brdnr;
|
unsigned int brdnr;
|
||||||
|
|
||||||
stli_timerlist.expires = STLI_TIMEOUT;
|
mod_timer(&stli_timerlist, STLI_TIMEOUT);
|
||||||
add_timer(&stli_timerlist);
|
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Check each board and do any servicing required.
|
* Check each board and do any servicing required.
|
||||||
@ -3610,8 +3609,7 @@ stli_donestartup:
|
|||||||
|
|
||||||
if (! stli_timeron) {
|
if (! stli_timeron) {
|
||||||
stli_timeron++;
|
stli_timeron++;
|
||||||
stli_timerlist.expires = STLI_TIMEOUT;
|
mod_timer(&stli_timerlist, STLI_TIMEOUT);
|
||||||
add_timer(&stli_timerlist);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
return rc;
|
return rc;
|
||||||
|
Loading…
Reference in New Issue
Block a user