pstore/ram: avoid atomic accesses for ioremapped regions
authorRob Herring <rob.herring@calxeda.com>
Tue, 9 Apr 2013 01:23:33 +0000 (20:23 -0500)
committerTony Luck <tony.luck@intel.com>
Fri, 14 Jun 2013 22:54:21 +0000 (15:54 -0700)
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: Rob Herring <rob.herring@calxeda.com>
Acked-by: Anton Vorontsov <anton@enomsg.org>
Signed-off-by: Tony Luck <tony.luck@intel.com>

No differences found