Subversion Repositories Kolibri OS

Rev

Rev 5270 | Rev 6936 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 5270 Rev 6082
Line 128... Line 128...
128
	bounce_acquired = bounce_acquired_write,
128
	bounce_acquired = bounce_acquired_write,
129
	bounce_contended = bounce_contended_write,
129
	bounce_contended = bounce_contended_write,
130
};
130
};
Line 131... Line 131...
131
 
131
 
132
struct lock_class_stats {
132
struct lock_class_stats {
133
	unsigned long			contention_point[4];
133
	unsigned long			contention_point[LOCKSTAT_POINTS];
134
	unsigned long			contending_point[4];
134
	unsigned long			contending_point[LOCKSTAT_POINTS];
135
	struct lock_time		read_waittime;
135
	struct lock_time		read_waittime;
136
	struct lock_time		write_waittime;
136
	struct lock_time		write_waittime;
137
	struct lock_time		read_holdtime;
137
	struct lock_time		read_holdtime;
138
	struct lock_time		write_holdtime;
138
	struct lock_time		write_holdtime;
Line 253... Line 253...
253
 
253
 
254
	unsigned int read:2;        /* see lock_acquire() comment */
254
	unsigned int read:2;        /* see lock_acquire() comment */
255
	unsigned int check:1;       /* see lock_acquire() comment */
255
	unsigned int check:1;       /* see lock_acquire() comment */
256
	unsigned int hardirqs_off:1;
256
	unsigned int hardirqs_off:1;
-
 
257
	unsigned int references:12;					/* 32 bits */
257
	unsigned int references:12;					/* 32 bits */
258
	unsigned int pin_count;
Line 258... Line 259...
258
};
259
};
259
 
260
 
260
/*
261
/*
Line 352... Line 353...
352
 
353
 
353
extern void lockdep_set_current_reclaim_state(gfp_t gfp_mask);
354
extern void lockdep_set_current_reclaim_state(gfp_t gfp_mask);
354
extern void lockdep_clear_current_reclaim_state(void);
355
extern void lockdep_clear_current_reclaim_state(void);
Line -... Line 356...
-
 
356
extern void lockdep_trace_alloc(gfp_t mask);
-
 
357
 
-
 
358
extern void lock_pin_lock(struct lockdep_map *lock);
355
extern void lockdep_trace_alloc(gfp_t mask);
359
extern void lock_unpin_lock(struct lockdep_map *lock);
Line 356... Line 360...
356
 
360
 
Line 357... Line 361...
357
# define INIT_LOCKDEP				.lockdep_recursion = 0, .lockdep_reclaim_gfp = 0,
361
# define INIT_LOCKDEP				.lockdep_recursion = 0, .lockdep_reclaim_gfp = 0,
Line 366... Line 370...
366
		WARN_ON_ONCE(debug_locks && !lockdep_is_held(l));	\
370
		WARN_ON_ONCE(debug_locks && !lockdep_is_held(l));	\
367
	} while (0)
371
	} while (0)
Line 368... Line 372...
368
 
372
 
Line -... Line 373...
-
 
373
#define lockdep_recursing(tsk)	((tsk)->lockdep_recursion)
-
 
374
 
-
 
375
#define lockdep_pin_lock(l)		lock_pin_lock(&(l)->dep_map)
369
#define lockdep_recursing(tsk)	((tsk)->lockdep_recursion)
376
#define lockdep_unpin_lock(l)	lock_unpin_lock(&(l)->dep_map)
Line 370... Line 377...
370
 
377
 
371
#else /* !CONFIG_LOCKDEP */
378
#else /* !CONFIG_LOCKDEP */
372
 
379
 
Line 418... Line 425...
418
#define lockdep_assert_held(l)			do { (void)(l); } while (0)
425
#define lockdep_assert_held(l)			do { (void)(l); } while (0)
419
#define lockdep_assert_held_once(l)		do { (void)(l); } while (0)
426
#define lockdep_assert_held_once(l)		do { (void)(l); } while (0)
Line 420... Line 427...
420
 
427
 
Line -... Line 428...
-
 
428
#define lockdep_recursing(tsk)			(0)
-
 
429
 
-
 
430
#define lockdep_pin_lock(l)				do { (void)(l); } while (0)
421
#define lockdep_recursing(tsk)			(0)
431
#define lockdep_unpin_lock(l)			do { (void)(l); } while (0)
Line 422... Line 432...
422
 
432
 
Line 423... Line 433...
423
#endif /* !LOCKDEP */
433
#endif /* !LOCKDEP */
Line 529... Line 539...
529
#else
539
#else
530
# define might_lock(lock) do { } while (0)
540
# define might_lock(lock) do { } while (0)
531
# define might_lock_read(lock) do { } while (0)
541
# define might_lock_read(lock) do { } while (0)
532
#endif
542
#endif
Line 533... Line 543...
533
 
543
 
534
#ifdef CONFIG_PROVE_RCU
544
#ifdef CONFIG_LOCKDEP
-
 
545
void lockdep_rcu_suspicious(const char *file, const int line, const char *s);
-
 
546
#else
-
 
547
static inline void
-
 
548
lockdep_rcu_suspicious(const char *file, const int line, const char *s)
-
 
549
{
535
void lockdep_rcu_suspicious(const char *file, const int line, const char *s);
550
}
Line 536... Line 551...
536
#endif
551
#endif