Browse Source

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

Signed-off-by: David S. Miller <davem@davemloft.net>
Raymond Burns 19 years ago
parent
commit
2f72ba4358
1 changed files with 1 additions and 0 deletions
  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;)