summaryrefslogtreecommitdiff
path: root/kernel/workqueue_internal.h
AgeCommit message (Collapse)AuthorFilesLines
2013-01-19workqueue: implement current_is_async()Tejun Heo1-0/+11
This function queries whether %current is an async worker executing an async item. This will be used to implement warning on synchronous request_module() from async workers. Signed-off-by: Tejun Heo <tj@kernel.org>
2013-01-19workqueue: move struct worker definition to workqueue_internal.hTejun Heo1-0/+37
This will be used to implement an inline function to query whether %current is a workqueue worker and, if so, allow determining which work item it's executing. Signed-off-by: Tejun Heo <tj@kernel.org> Cc: Linus Torvalds <torvalds@linux-foundation.org>
2013-01-19workqueue: rename kernel/workqueue_sched.h to kernel/workqueue_internal.hTejun Heo1-0/+18
Workqueue wants to expose more interface internal to kernel/. Instead of adding a new header file, repurpose kernel/workqueue_sched.h. Rename it to workqueue_internal.h and add include protector. This patch doesn't introduce any functional changes. Signed-off-by: Tejun Heo <tj@kernel.org> Cc: Linus Torvalds <torvalds@linux-foundation.org> Cc: Ingo Molnar <mingo@redhat.com> Cc: Peter Zijlstra <peterz@infradead.org>