Subversion Repositories Kolibri OS

Rev

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

Rev 1964 Rev 1970
Line 428... Line 428...
428
	lockfl((_lock), (flags))
428
	lockfl((_lock), (flags))
Line 429... Line 429...
429
 
429
 
Line 430... Line 430...
430
#endif /* CONFIG_LOCKDEP */
430
#endif /* CONFIG_LOCKDEP */
431
 
-
 
432
#ifdef CONFIG_TRACE_IRQFLAGS
-
 
433
extern void early_boot_irqs_off(void);
431
 
434
extern void early_boot_irqs_on(void);
432
#ifdef CONFIG_TRACE_IRQFLAGS
435
extern void print_irqtrace_events(struct task_struct *curr);
-
 
436
#else
-
 
437
static inline void early_boot_irqs_off(void)
-
 
438
{
-
 
439
}
-
 
440
static inline void early_boot_irqs_on(void)
-
 
441
{
433
extern void print_irqtrace_events(struct task_struct *curr);
442
}
434
#else
443
static inline void print_irqtrace_events(struct task_struct *curr)
435
static inline void print_irqtrace_events(struct task_struct *curr)
444
{
436
{
Line 487... Line 479...
487
#endif
479
#endif
Line 488... Line 480...
488
 
480
 
489
#ifdef CONFIG_DEBUG_LOCK_ALLOC
481
#ifdef CONFIG_DEBUG_LOCK_ALLOC
490
# ifdef CONFIG_PROVE_LOCKING
482
# ifdef CONFIG_PROVE_LOCKING
-
 
483
#  define mutex_acquire(l, s, t, i)		lock_acquire(l, s, t, 0, 2, NULL, i)
491
#  define mutex_acquire(l, s, t, i)		lock_acquire(l, s, t, 0, 2, NULL, i)
484
#  define mutex_acquire_nest(l, s, t, n, i)	lock_acquire(l, s, t, 0, 2, n, i)
492
# else
485
# else
-
 
486
#  define mutex_acquire(l, s, t, i)		lock_acquire(l, s, t, 0, 1, NULL, i)
493
#  define mutex_acquire(l, s, t, i)		lock_acquire(l, s, t, 0, 1, NULL, i)
487
#  define mutex_acquire_nest(l, s, t, n, i)	lock_acquire(l, s, t, 0, 1, n, i)
494
# endif
488
# endif
495
# define mutex_release(l, n, i)			lock_release(l, n, i)
489
# define mutex_release(l, n, i)			lock_release(l, n, i)
496
#else
490
#else
-
 
491
# define mutex_acquire(l, s, t, i)		do { } while (0)
497
# define mutex_acquire(l, s, t, i)		do { } while (0)
492
# define mutex_acquire_nest(l, s, t, n, i)	do { } while (0)
498
# define mutex_release(l, n, i)			do { } while (0)
493
# define mutex_release(l, n, i)			do { } while (0)
Line 499... Line 494...
499
#endif
494
#endif
500
 
495
 
Line 514... Line 509...
514
#endif
509
#endif
Line 515... Line 510...
515
 
510
 
516
#ifdef CONFIG_DEBUG_LOCK_ALLOC
511
#ifdef CONFIG_DEBUG_LOCK_ALLOC
517
# ifdef CONFIG_PROVE_LOCKING
512
# ifdef CONFIG_PROVE_LOCKING
-
 
513
#  define lock_map_acquire(l)		lock_acquire(l, 0, 0, 0, 2, NULL, _THIS_IP_)
518
#  define lock_map_acquire(l)		lock_acquire(l, 0, 0, 0, 2, NULL, _THIS_IP_)
514
#  define lock_map_acquire_read(l)	lock_acquire(l, 0, 0, 2, 2, NULL, _THIS_IP_)
519
# else
515
# else
-
 
516
#  define lock_map_acquire(l)		lock_acquire(l, 0, 0, 0, 1, NULL, _THIS_IP_)
520
#  define lock_map_acquire(l)		lock_acquire(l, 0, 0, 0, 1, NULL, _THIS_IP_)
517
#  define lock_map_acquire_read(l)	lock_acquire(l, 0, 0, 2, 1, NULL, _THIS_IP_)
521
# endif
518
# endif
522
# define lock_map_release(l)			lock_release(l, 1, _THIS_IP_)
519
# define lock_map_release(l)			lock_release(l, 1, _THIS_IP_)
523
#else
520
#else
-
 
521
# define lock_map_acquire(l)			do { } while (0)
524
# define lock_map_acquire(l)			do { } while (0)
522
# define lock_map_acquire_read(l)		do { } while (0)
525
# define lock_map_release(l)			do { } while (0)
523
# define lock_map_release(l)			do { } while (0)
Line 526... Line 524...
526
#endif
524
#endif
527
 
525