]> git.proxmox.com Git - mirror_ubuntu-zesty-kernel.git/commit - fs/pstore/ram_core.c
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)
commit0405a5cec3406f19e69da07c8111a6bf1088ac29
treee56d8e5f9d16c799a48da12947b907d0e76d7121
parent77418921649427577143667fcf00ccb8a809762a
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: Rob Herring <rob.herring@calxeda.com>
Acked-by: Anton Vorontsov <anton@enomsg.org>
Signed-off-by: Tony Luck <tony.luck@intel.com>
fs/pstore/ram_core.c