提交 ff8efe97 编写于 作者: J Jiri Slaby 提交者: Linus Torvalds

[PATCH] Char: istallion, use mod_timer

Do not set expires by hand, use kernel helper, which also calls add_timer.
Signed-off-by: NJiri Slaby <jirislaby@gmail.com>
Cc: Alan Cox <alan@lxorguk.ukuu.org.uk>
Signed-off-by: NAndrew Morton <akpm@osdl.org>
Signed-off-by: NLinus Torvalds <torvalds@osdl.org>
上级 ec3dde57
......@@ -2545,8 +2545,7 @@ static void stli_poll(unsigned long arg)
struct stlibrd *brdp;
unsigned int brdnr;
stli_timerlist.expires = STLI_TIMEOUT;
add_timer(&stli_timerlist);
mod_timer(&stli_timerlist, STLI_TIMEOUT);
/*
* Check each board and do any servicing required.
......@@ -3610,8 +3609,7 @@ static int stli_startbrd(struct stlibrd *brdp)
if (! stli_timeron) {
stli_timeron++;
stli_timerlist.expires = STLI_TIMEOUT;
add_timer(&stli_timerlist);
mod_timer(&stli_timerlist, STLI_TIMEOUT);
}
return rc;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册