[MTD] CFI flash locking reorg for XIP
authorNicolas Pitre <nico@cam.org>
Thu, 19 May 2005 17:05:47 +0000 (18:05 +0100)
committerThomas Gleixner <tglx@mtd.linutronix.de>
Mon, 23 May 2005 11:21:35 +0000 (13:21 +0200)
commit6da70124a1cc05bdbd7c847901964edc6f634a91
tree3cd1afd4b23b8ed31b2b92b9d11c67a854a7be63
parentfff7afd791f6a685b3ddedb8cfb152aed85f3cf8
[MTD] CFI flash locking reorg for XIP

This reworks the XIP locking to make sure no lock primitive is ever
called from XIP disabled paths even if in theory they should not
cause any reschedule.  Relying on the current spinlock implementation
is rather fragile and not especially clean from an abstraction pov.
The recent RT work makes it even more obvious.

Signed-off-by: Nicolas Pitre <nico@cam.org>
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
drivers/mtd/chips/cfi_cmdset_0001.c