diff options
| author | Ingo Molnar <mingo@elte.hu> | 2009-04-02 10:33:42 -0400 |
|---|---|---|
| committer | Ingo Molnar <mingo@elte.hu> | 2009-04-02 10:33:51 -0400 |
| commit | 83f2f0ed715eb15a8e13c07df479d65bbc10d8d5 (patch) | |
| tree | e47d7edefa210b328f8cfba43d170fc67d6e0671 /kernel/async.c | |
| parent | 3de46fda4c104deef17ec70f85361f5c6b84ce0e (diff) | |
| parent | 4fe70410d9a219dabb47328effccae7e7f2a6e26 (diff) | |
Merge branch 'linus' into x86/urgent
Merge needed to go past commit 7ca43e756 (mm: use debug_kmap_atomic)
and fix it.
Signed-off-by: Ingo Molnar <mingo@elte.hu>
Diffstat (limited to 'kernel/async.c')
| -rw-r--r-- | kernel/async.c | 18 |
1 files changed, 5 insertions, 13 deletions
diff --git a/kernel/async.c b/kernel/async.c index f565891f2c9b..968ef9457d4e 100644 --- a/kernel/async.c +++ b/kernel/async.c | |||
| @@ -49,6 +49,7 @@ asynchronous and synchronous parts of the kernel. | |||
| 49 | */ | 49 | */ |
| 50 | 50 | ||
| 51 | #include <linux/async.h> | 51 | #include <linux/async.h> |
| 52 | #include <linux/bug.h> | ||
| 52 | #include <linux/module.h> | 53 | #include <linux/module.h> |
| 53 | #include <linux/wait.h> | 54 | #include <linux/wait.h> |
| 54 | #include <linux/sched.h> | 55 | #include <linux/sched.h> |
| @@ -387,20 +388,11 @@ static int async_manager_thread(void *unused) | |||
| 387 | 388 | ||
| 388 | static int __init async_init(void) | 389 | static int __init async_init(void) |
| 389 | { | 390 | { |
| 390 | if (async_enabled) | 391 | async_enabled = |
| 391 | if (IS_ERR(kthread_run(async_manager_thread, NULL, | 392 | !IS_ERR(kthread_run(async_manager_thread, NULL, "async/mgr")); |
| 392 | "async/mgr"))) | ||
| 393 | async_enabled = 0; | ||
| 394 | return 0; | ||
| 395 | } | ||
| 396 | 393 | ||
| 397 | static int __init setup_async(char *str) | 394 | WARN_ON(!async_enabled); |
| 398 | { | 395 | return 0; |
| 399 | async_enabled = 1; | ||
| 400 | return 1; | ||
| 401 | } | 396 | } |
| 402 | 397 | ||
| 403 | __setup("fastboot", setup_async); | ||
| 404 | |||
| 405 | |||
| 406 | core_initcall(async_init); | 398 | core_initcall(async_init); |
