Rev 2087 | Rev 2211 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
| Rev 2087 | Rev 2183 | ||
|---|---|---|---|
| Line 71... | Line 71... | ||
| 71 | * possible occurence of deadlock. |
71 | * possible occurence of deadlock. |
| 72 | * |
72 | * |
| 73 | * @param sl Pointer to spinlock_t structure. |
73 | * @param sl Pointer to spinlock_t structure. |
| 74 | */ |
74 | */ |
| 75 | #ifdef CONFIG_DEBUG_SPINLOCK |
75 | #ifdef CONFIG_DEBUG_SPINLOCK |
| 76 | #define DEADLOCK_THRESHOLD 100000000 |
- | |
| 77 | void spinlock_lock_debug(spinlock_t *sl) |
76 | void spinlock_lock_debug(spinlock_t *sl) |
| 78 | { |
77 | { |
| 79 | count_t i = 0; |
78 | count_t i = 0; |
| 80 | char *symbol; |
79 | char *symbol; |
| 81 | bool deadlock_reported = false; |
80 | bool deadlock_reported = false; |