Commit 2f72ba43 authored by Raymond Burns's avatar Raymond Burns Committed by David S. Miller

[SPARC]: Initialize iounit spinlock in iounit_init().

Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent 9d7ab1f4
...@@ -64,6 +64,7 @@ iounit_init(int sbi_node, int io_node, struct sbus_bus *sbus) ...@@ -64,6 +64,7 @@ iounit_init(int sbi_node, int io_node, struct sbus_bus *sbus)
sbus->iommu = (struct iommu_struct *)iounit; sbus->iommu = (struct iommu_struct *)iounit;
iounit->page_table = xpt; iounit->page_table = xpt;
spin_lock_init(&iounit->lock);
for (xptend = iounit->page_table + (16 * PAGE_SIZE) / sizeof(iopte_t); for (xptend = iounit->page_table + (16 * PAGE_SIZE) / sizeof(iopte_t);
xpt < xptend;) xpt < xptend;)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment