search for: uf_node

Displaying 2 results from an estimated 2 matches for "uf_node".

Did you mean: of_node
2015 Apr 08
2
[PATCH v15 16/16] unfair qspinlock: a queue based unfair lock
...hance it has of stealing + * the lock. This scheme reduces the load on the lock cacheline while trying + * to maintain a somewhat FIFO order of getting the lock so as to reduce + * the chance of lock starvation. + */ +#define LSTEAL_MIN (1 << 3) +#define LSTEAL_MAX (1 << 10) + +struct uf_node { + struct mcs_spinlock mcs; + struct mcs_spinlock __res[3]; + + struct uf_node *prev; /* Previous node address */ + int lsteal_period; /* Lock stealing period */ + u32 prev_tail; /* Previous node tail code */ +}; + +/** + * cmpxchg_tail - Put in the new tail code if it matches the old o...
2015 Apr 08
2
[PATCH v15 16/16] unfair qspinlock: a queue based unfair lock
...hance it has of stealing + * the lock. This scheme reduces the load on the lock cacheline while trying + * to maintain a somewhat FIFO order of getting the lock so as to reduce + * the chance of lock starvation. + */ +#define LSTEAL_MIN (1 << 3) +#define LSTEAL_MAX (1 << 10) + +struct uf_node { + struct mcs_spinlock mcs; + struct mcs_spinlock __res[3]; + + struct uf_node *prev; /* Previous node address */ + int lsteal_period; /* Lock stealing period */ + u32 prev_tail; /* Previous node tail code */ +}; + +/** + * cmpxchg_tail - Put in the new tail code if it matches the old o...