diff options
author | Linus Torvalds <torvalds@linux-foundation.org> | 2010-12-24 12:59:09 -0800 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2010-12-24 12:59:09 -0800 |
commit | a4790c9457ae973d598bbd5ce58f9eaa2dd1576b (patch) | |
tree | 997c23d8182567d1b294022d81f9a315b2a642ef /kernel | |
parent | 08da5a32b7789289f48f3037b64df2945b5dafc2 (diff) | |
parent | bcbea798f8f1492052c23ceb4fbc2a96013a3865 (diff) | |
download | linux-a4790c9457ae973d598bbd5ce58f9eaa2dd1576b.tar.bz2 |
Merge branch 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tj/percpu
* 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tj/percpu:
percpu: print out alloc information with KERN_DEBUG instead of KERN_INFO
kthread_work: make lockdep happy
Diffstat (limited to 'kernel')
-rw-r--r-- | kernel/kthread.c | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/kernel/kthread.c b/kernel/kthread.c index 2dc3786349d1..ca61bbdd44b2 100644 --- a/kernel/kthread.c +++ b/kernel/kthread.c @@ -265,6 +265,17 @@ int kthreadd(void *unused) return 0; } +void __init_kthread_worker(struct kthread_worker *worker, + const char *name, + struct lock_class_key *key) +{ + spin_lock_init(&worker->lock); + lockdep_set_class_and_name(&worker->lock, key, name); + INIT_LIST_HEAD(&worker->work_list); + worker->task = NULL; +} +EXPORT_SYMBOL_GPL(__init_kthread_worker); + /** * kthread_worker_fn - kthread function to process kthread_worker * @worker_ptr: pointer to initialized kthread_worker |