提交 2f72ba43 编写于 作者: R Raymond Burns 提交者: David S. Miller

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

Signed-off-by: NDavid S. Miller <davem@davemloft.net>
上级 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% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册