aboutsummaryrefslogtreecommitdiffstats
path: root/arch/sparc
diff options
context:
space:
mode:
authorRaymond Burns <rayburns@comcast.net>2006-07-17 21:40:27 -0700
committerDavid S. Miller <davem@sunset.davemloft.net>2006-07-21 14:18:13 -0700
commit2f72ba43581890d003427053ebe4dfaa14e5f4b0 (patch)
tree05c213214f9a30370dbe1cd10293f71878e0a032 /arch/sparc
parent9d7ab1f4d56dffcddc1177b3cd55b6da6620e1e1 (diff)
downloadkernel_goldelico_gta04-2f72ba43581890d003427053ebe4dfaa14e5f4b0.zip
kernel_goldelico_gta04-2f72ba43581890d003427053ebe4dfaa14e5f4b0.tar.gz
kernel_goldelico_gta04-2f72ba43581890d003427053ebe4dfaa14e5f4b0.tar.bz2
[SPARC]: Initialize iounit spinlock in iounit_init().
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'arch/sparc')
-rw-r--r--arch/sparc/mm/io-unit.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/arch/sparc/mm/io-unit.c b/arch/sparc/mm/io-unit.c
index 42c1c70..2bb1309 100644
--- a/arch/sparc/mm/io-unit.c
+++ b/arch/sparc/mm/io-unit.c
@@ -64,6 +64,7 @@ iounit_init(int sbi_node, int io_node, struct sbus_bus *sbus)
sbus->iommu = (struct iommu_struct *)iounit;
iounit->page_table = xpt;
+ spin_lock_init(&iounit->lock);
for (xptend = iounit->page_table + (16 * PAGE_SIZE) / sizeof(iopte_t);
xpt < xptend;)