diff options
| author | Ingo Molnar <mingo@elte.hu> | 2008-09-05 12:56:57 -0400 |
|---|---|---|
| committer | Ingo Molnar <mingo@elte.hu> | 2008-09-05 12:56:57 -0400 |
| commit | 616ad8c44281c0c6711a72b560e01ec335ff27e0 (patch) | |
| tree | 0a20453ffedb09db6fb41a0c2208ccc2c7751d3a /include/linux/kernel.h | |
| parent | 99809963c99e1ed868d9ebeb4a5e7ee1cbe0309f (diff) | |
| parent | b380b0d4f7dffcc235c0facefa537d4655619101 (diff) | |
Merge branch 'linus' into x86/defconfig
Diffstat (limited to 'include/linux/kernel.h')
| -rw-r--r-- | include/linux/kernel.h | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/include/linux/kernel.h b/include/linux/kernel.h index aaa998f65c7a..2651f805ba6d 100644 --- a/include/linux/kernel.h +++ b/include/linux/kernel.h | |||
| @@ -108,6 +108,13 @@ struct completion; | |||
| 108 | struct pt_regs; | 108 | struct pt_regs; |
| 109 | struct user; | 109 | struct user; |
| 110 | 110 | ||
| 111 | #ifdef CONFIG_PREEMPT_VOLUNTARY | ||
| 112 | extern int _cond_resched(void); | ||
| 113 | # define might_resched() _cond_resched() | ||
| 114 | #else | ||
| 115 | # define might_resched() do { } while (0) | ||
| 116 | #endif | ||
| 117 | |||
| 111 | /** | 118 | /** |
| 112 | * might_sleep - annotation for functions that can sleep | 119 | * might_sleep - annotation for functions that can sleep |
| 113 | * | 120 | * |
| @@ -118,13 +125,6 @@ struct user; | |||
| 118 | * be bitten later when the calling function happens to sleep when it is not | 125 | * be bitten later when the calling function happens to sleep when it is not |
| 119 | * supposed to. | 126 | * supposed to. |
| 120 | */ | 127 | */ |
| 121 | #ifdef CONFIG_PREEMPT_VOLUNTARY | ||
| 122 | extern int _cond_resched(void); | ||
| 123 | # define might_resched() _cond_resched() | ||
| 124 | #else | ||
| 125 | # define might_resched() do { } while (0) | ||
| 126 | #endif | ||
| 127 | |||
| 128 | #ifdef CONFIG_DEBUG_SPINLOCK_SLEEP | 128 | #ifdef CONFIG_DEBUG_SPINLOCK_SLEEP |
| 129 | void __might_sleep(char *file, int line); | 129 | void __might_sleep(char *file, int line); |
| 130 | # define might_sleep() \ | 130 | # define might_sleep() \ |
