From: Kim Phillips Date: Sat, 23 Jun 2012 00:48:56 +0000 (-0500) Subject: crypto: caam - consolidate memory barriers from job ring en/dequeue X-Git-Tag: v3.6-rc1~94^2~18 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=14a8e29cc2012394d3e886b11402eabd49a4d609;p=pandora-kernel.git crypto: caam - consolidate memory barriers from job ring en/dequeue Memory barriers are implied by the i/o register write implementation (at least on Power). So we can remove the redundant wmb() in caam_jr_enqueue, and, in dequeue(), hoist the h/w done notification write up to before we need to increment the head of the ring, and save an smp_mb. Signed-off-by: Kim Phillips Signed-off-by: Herbert Xu --- Reading git-diff-tree failed