Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 212926
b: refs/heads/master
c: 0fc86c7
h: refs/heads/master
v: v3
  • Loading branch information
Arnd Bergmann committed Oct 19, 2010
1 parent 3edcdb6 commit c486c26
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 72024f1ec5164a70d84dd8cf4458fe4064a6b692
refs/heads/master: 0fc86c7bd924debd0bddee790ecc884604fdcc63
6 changes: 6 additions & 0 deletions trunk/kernel/rtmutex-tester.c
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,9 @@ static int handle_op(struct test_thread_data *td, int lockwakeup)
}

if (!lockwakeup && td->bkl == 4) {
#ifdef CONFIG_LOCK_KERNEL
unlock_kernel();
#endif
td->bkl = 0;
}
return 0;
Expand Down Expand Up @@ -133,14 +135,18 @@ static int handle_op(struct test_thread_data *td, int lockwakeup)
if (td->bkl)
return 0;
td->bkl = 1;
#ifdef CONFIG_LOCK_KERNEL
lock_kernel();
#endif
td->bkl = 4;
return 0;

case RTTEST_UNLOCKBKL:
if (td->bkl != 4)
break;
#ifdef CONFIG_LOCK_KERNEL
unlock_kernel();
#endif
td->bkl = 0;
return 0;

Expand Down

0 comments on commit c486c26

Please sign in to comment.