Thread (2 messages) 2 messages, 2 authors, 2014-02-27

Re: [PATCH v5 1/8] qspinlock: Introducing a 4-byte queue spinlock implementation

From: Waiman Long <hidden>
Date: 2014-02-27 20:25:51
Also in: linux-arch

On 02/26/2014 11:24 AM, Peter Zijlstra wrote:
On Wed, Feb 26, 2014 at 10:14:21AM -0500, Waiman Long wrote:
quoted
+static void put_qnode(void)
+{
+	struct qnode_set *qset = this_cpu_ptr(&qnset);
+
+	qset->node_idx--;
+}
That very much wants to be: this_cpu_dec().
Yes, I will change it to use this_cpu_dec().

-Longman
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help