Blackfin: push SRAM locks down into related ifdefs
authorMike Frysinger <vapier@gentoo.org>
Wed, 1 Jul 2009 15:42:13 +0000 (15:42 +0000)
committerMike Frysinger <vapier@gentoo.org>
Thu, 17 Sep 2009 01:31:41 +0000 (21:31 -0400)
commit81c969a8bc4bdc39032f6c58e50e61a8daeeb655
tree49e9252e316ae9cb021d595de4a07cb0cf1e89d3
parent9c954f89412b346e0aeec01c5729cb7ca63e2673
Blackfin: push SRAM locks down into related ifdefs

Rather than defining the locks and initializing them all the time, only do
so when we actually need them (i.e. the SRAM regions exist).  This avoids
dead data and code bloat during runtime.

Signed-off-by: Mike Frysinger <vapier@gentoo.org>
arch/blackfin/mm/sram-alloc.c