Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 139035
b: refs/heads/master
c: fabe9c4
h: refs/heads/master
i:
  139033: 496b4f4
  139031: c2d367e
v: v3
  • Loading branch information
Peter Zijlstra authored and Ingo Molnar committed Feb 14, 2009
1 parent d65b0a0 commit c279329
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 14 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: d7b1b02134272840f4b655136e00c461e1cf1d53
refs/heads/master: fabe9c42c6328de314d811887b4752eb3d202291
26 changes: 13 additions & 13 deletions trunk/kernel/lockdep.c
Original file line number Diff line number Diff line change
Expand Up @@ -445,21 +445,21 @@ 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",

static const char *usage_str[] =
{
[LOCK_USED] = "initial-use ",
[LOCK_USED_IN_HARDIRQ] = "in-hardirq-W",
[LOCK_USED_IN_SOFTIRQ] = "in-softirq-W",
[LOCK_ENABLED_SOFTIRQ] = "softirq-on-W",
[LOCK_ENABLED_HARDIRQ] = "hardirq-on-W",
[LOCK_USED_IN_HARDIRQ_READ] = "in-hardirq-R",
[LOCK_USED_IN_SOFTIRQ_READ] = "in-softirq-R",
[LOCK_ENABLED_SOFTIRQ_READ] = "softirq-on-R",
[LOCK_ENABLED_HARDIRQ_READ] = "hardirq-on-R",
[LOCK_USED_IN_RECLAIM_FS] = "in-reclaim-W",
[LOCK_USED_IN_RECLAIM_FS_READ] = "in-reclaim-R",
[LOCK_ENABLED_RECLAIM_FS] = "ov-reclaim-W",
[LOCK_ENABLED_RECLAIM_FS_READ] = "ov-reclaim-R",
#define LOCKDEP_STATE(__STATE) __USAGE(__STATE)
#include "lockdep_states.h"
#undef LOCKDEP_STATE
[LOCK_USED] = "INITIAL USE",
};

const char * __get_key_name(struct lockdep_subclass_key *key, char *str)
Expand Down

0 comments on commit c279329

Please sign in to comment.