diff options
| author | Ingo Molnar <mingo@elte.hu> | 2010-10-30 04:43:08 -0400 |
|---|---|---|
| committer | Ingo Molnar <mingo@elte.hu> | 2010-10-30 04:43:08 -0400 |
| commit | 169ed55bd30305b933f52bfab32a58671d44ab68 (patch) | |
| tree | 32e280957474f458901abfce16fa2a1687ef7497 /kernel/rtmutex-tester.c | |
| parent | 3d7851b3cdd43a734e5cc4c643fd886ab28ad4d5 (diff) | |
| parent | 45f81b1c96d9793e47ce925d257ea693ce0b193e (diff) | |
Merge branch 'tip/perf/jump-label-2' of git://git.kernel.org/pub/scm/linux/kernel/git/rostedt/linux-2.6-trace into perf/urgent
Diffstat (limited to 'kernel/rtmutex-tester.c')
| -rw-r--r-- | kernel/rtmutex-tester.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/kernel/rtmutex-tester.c b/kernel/rtmutex-tester.c index a56f629b057a..66cb89bc5ef1 100644 --- a/kernel/rtmutex-tester.c +++ b/kernel/rtmutex-tester.c | |||
| @@ -76,7 +76,9 @@ static int handle_op(struct test_thread_data *td, int lockwakeup) | |||
| 76 | } | 76 | } |
| 77 | 77 | ||
| 78 | if (!lockwakeup && td->bkl == 4) { | 78 | if (!lockwakeup && td->bkl == 4) { |
| 79 | #ifdef CONFIG_LOCK_KERNEL | ||
| 79 | unlock_kernel(); | 80 | unlock_kernel(); |
| 81 | #endif | ||
| 80 | td->bkl = 0; | 82 | td->bkl = 0; |
| 81 | } | 83 | } |
| 82 | return 0; | 84 | return 0; |
| @@ -133,14 +135,18 @@ static int handle_op(struct test_thread_data *td, int lockwakeup) | |||
| 133 | if (td->bkl) | 135 | if (td->bkl) |
| 134 | return 0; | 136 | return 0; |
| 135 | td->bkl = 1; | 137 | td->bkl = 1; |
| 138 | #ifdef CONFIG_LOCK_KERNEL | ||
| 136 | lock_kernel(); | 139 | lock_kernel(); |
| 140 | #endif | ||
| 137 | td->bkl = 4; | 141 | td->bkl = 4; |
| 138 | return 0; | 142 | return 0; |
| 139 | 143 | ||
| 140 | case RTTEST_UNLOCKBKL: | 144 | case RTTEST_UNLOCKBKL: |
| 141 | if (td->bkl != 4) | 145 | if (td->bkl != 4) |
| 142 | break; | 146 | break; |
| 147 | #ifdef CONFIG_LOCK_KERNEL | ||
| 143 | unlock_kernel(); | 148 | unlock_kernel(); |
| 149 | #endif | ||
| 144 | td->bkl = 0; | 150 | td->bkl = 0; |
| 145 | return 0; | 151 | return 0; |
| 146 | 152 | ||
