浏览代码

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

Signed-off-by: David S. Miller <davem@davemloft.net>
Raymond Burns 19 年之前
父节点
当前提交
2f72ba4358
共有 1 个文件被更改,包括 1 次插入0 次删除
  1. 1 0
      arch/sparc/mm/io-unit.c

+ 1 - 0
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;)