Skip to content
Commit 8b549c18 authored by Peter Zijlstra's avatar Peter Zijlstra Committed by Stafford Horne
Browse files

openrisc: Define memory barrier mb



This came up in the discussion of the requirements of qspinlock on an
architecture.  OpenRISC uses qspinlock, but it was noticed that the
memmory barrier was not defined.

Peter defined it in the mail thread writing:

    As near as I can tell this should do. The arch spec only lists
    this one instruction and the text makes it sound like a completion
    barrier.

This is correct so applying this patch.

Signed-off-by: default avatarPeter Zijlstra <peterz@infradead.org>
[shorne@gmail.com:Turned the mail into a patch]
Signed-off-by: default avatarStafford Horne <shorne@gmail.com>
parent 371dcaee
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment