Skip to content
Commit 0405a5ce authored by Rob Herring's avatar Rob Herring Committed by Tony Luck
Browse files

pstore/ram: avoid atomic accesses for ioremapped regions



For persistent RAM outside of main memory, the memory may have limitations
on supported accesses. For internal RAM on highbank platform exclusive
accesses are not supported and will hang the system. So atomic_cmpxchg
cannot be used. This commit uses spinlock protection for buffer size and
start updates on ioremapped regions instead.

Signed-off-by: default avatarRob Herring <rob.herring@calxeda.com>
Acked-by: default avatarAnton Vorontsov <anton@enomsg.org>
Signed-off-by: default avatarTony Luck <tony.luck@intel.com>
parent 77418921
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment