]> git.kernelconcepts.de Git - karo-tx-linux.git/commit
Char: moxa, fix and optimise empty timer
authorJiri Slaby <jirislaby@gmail.com>
Thu, 18 Oct 2007 10:06:19 +0000 (03:06 -0700)
committerGreg Kroah-Hartman <gregkh@suse.de>
Fri, 16 Nov 2007 17:30:24 +0000 (09:30 -0800)
commit1afe211337064320daa4839e42d005747da812b7
tree19c5d491f9b58a6679e121a6cc03d6b2671c9268
parent76d41df34060a0e464a4e451f00610fd816c030e
Char: moxa, fix and optimise empty timer

patch c43422053bea7a5ce09f18d0c50a606fe1a549f4 in mainline.

moxa, fix and optimise empty timer

don't wait and delete empty timer in empty timer function. Also fire next
empty timer at rounded jiffies to save power.

This fixes a lockup, because we wait for ourselves to finish forever.
(i.e.  sync called from the timer itself).

Signed-off-by: Jiri Slaby <jirislaby@gmail.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/char/moxa.c