Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 139048
b: refs/heads/master
c: b4b136f
h: refs/heads/master
v: v3
  • Loading branch information
Peter Zijlstra authored and Ingo Molnar committed Feb 14, 2009
1 parent f8c5a58 commit b32ab19
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 10 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 4f367d8adca947bed4385740a13d1efb1a06fba1
refs/heads/master: b4b136f44b3b7adb9265fd5566d0ea9b99b1cd5f
16 changes: 7 additions & 9 deletions trunk/kernel/lockdep.c
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,7 @@
#include <linux/utsname.h>
#include <linux/hash.h>
#include <linux/ftrace.h>
#include <linux/stringify.h>

#include <asm/sections.h>

Expand Down Expand Up @@ -445,14 +446,11 @@ atomic_t nr_find_usage_backwards_recursions;
* Locking printouts:
*/

#define __STR(foo) #foo
#define STR(foo) __STR(foo)

#define __USAGE(__STATE) \
[LOCK_USED_IN_##__STATE] = "IN-"STR(__STATE)"-W", \
[LOCK_ENABLED_##__STATE] = STR(__STATE)"-ON-W", \
[LOCK_USED_IN_##__STATE##_READ] = "IN-"STR(__STATE)"-R", \
[LOCK_ENABLED_##__STATE##_READ] = STR(__STATE)"-ON-R",
[LOCK_USED_IN_##__STATE] = "IN-"__stringify(__STATE)"-W", \
[LOCK_ENABLED_##__STATE] = __stringify(__STATE)"-ON-W", \
[LOCK_USED_IN_##__STATE##_READ] = "IN-"__stringify(__STATE)"-R",\
[LOCK_ENABLED_##__STATE##_READ] = __stringify(__STATE)"-ON-R",

static const char *usage_str[] =
{
Expand Down Expand Up @@ -1270,14 +1268,14 @@ check_usage(struct task_struct *curr, struct held_lock *prev,

static const char *state_names[] = {
#define LOCKDEP_STATE(__STATE) \
STR(__STATE),
__stringify(__STATE),
#include "lockdep_states.h"
#undef LOCKDEP_STATE
};

static const char *state_rnames[] = {
#define LOCKDEP_STATE(__STATE) \
STR(__STATE)"-READ",
__stringify(__STATE)"-READ",
#include "lockdep_states.h"
#undef LOCKDEP_STATE
};
Expand Down

0 comments on commit b32ab19

Please sign in to comment.