]> pilppa.com Git - linux-2.6-omap-h63xx.git/commit
W1: w1_process, block or sleep
authorDavid Fries <david@fries.net>
Thu, 16 Oct 2008 05:04:41 +0000 (22:04 -0700)
committerLinus Torvalds <torvalds@linux-foundation.org>
Thu, 16 Oct 2008 18:21:49 +0000 (11:21 -0700)
commit3c52e4e627896b42152cc6ff98216c302932227e
tree811992a651418cfcd8a606317e2abae26447b9f9
parent01e14d6db9654be005a0a5384090aea2cde39976
W1: w1_process, block or sleep

The w1_process thread's sleeping and termination has been modified.
msleep_interruptible was replaced by schedule_timeout and schedule to
allow for kthread_stop and wake_up_process to interrupt the sleep and the
unbounded sleeping when a bus search is disabled.  The W1_MASTER_NEED_EXIT
and flags variable were removed as they were redundant with
kthread_should_stop and kthread_stop.  If w1_process is sleeping,
requesting a search will immediately wake it up rather than waiting for
the end of msleep_interruptible previously.

Signed-off-by: David Fries <david@fries.net>
Signed-off-by: Evgeniy Polyakov <johnpol@2ka.mipt.ru>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
drivers/w1/w1.c
drivers/w1/w1.h
drivers/w1/w1_int.c