[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-ID: <1326519648.92006.YahooMailNeo@web112707.mail.gq1.yahoo.com>
Date: Fri, 13 Jan 2012 21:40:48 -0800 (PST)
From: Feng Ye <f_ye@...oo.com>
To: "linux-kernel@...r.kernel.org" <linux-kernel@...r.kernel.org>
Subject: How to wait for threaded irq handler to finish, as in work queue flush/cancel?
Hello there,
I have a question regarding how to cancel threaded irq handler in a driver's suspend function.
If it's NOT threaded irq, normally you have a work queue, and in the suspend function, you call either cancel_work_sync() or flush_work(), these function will WAIT for the work queue to finish if it's in the middle of something.
However if you use threaded irq, then you don't need a work queue, then in the suspend function, I don't know if there's a simple function that can be used to cancel and wait the thread to finish?
Thanks,
Feng
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists