Subversion Repositories Kolibri OS

Rev

Rev 5272 | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 5272 Rev 5345
Line 23... Line 23...
23
#ifdef CONFIG_RWSEM_GENERIC_SPINLOCK
23
#ifdef CONFIG_RWSEM_GENERIC_SPINLOCK
24
#include  /* use a generic implementation */
24
#include  /* use a generic implementation */
25
#else
25
#else
26
/* All arch specific implementations share the same struct */
26
/* All arch specific implementations share the same struct */
27
struct rw_semaphore {
27
struct rw_semaphore {
28
	long count;
-
 
29
	struct list_head wait_list;
28
	struct list_head wait_list;
-
 
29
	long count;
30
	raw_spinlock_t wait_lock;
30
	raw_spinlock_t wait_lock;
31
#ifdef CONFIG_RWSEM_SPIN_ON_OWNER
31
#ifdef CONFIG_RWSEM_SPIN_ON_OWNER
32
	struct optimistic_spin_queue osq; /* spinner MCS lock */
32
	struct optimistic_spin_queue osq; /* spinner MCS lock */
33
	/*
33
	/*
34
	 * Write owner. Used as a speculative check to see
34
	 * Write owner. Used as a speculative check to see