Skip to content

Commit

Permalink
[SPARC]: Initialize iounit spinlock in iounit_init().
Browse files Browse the repository at this point in the history
Signed-off-by: David S. Miller <davem@davemloft.net>
  • Loading branch information
Raymond Burns authored and David S. Miller committed Jul 21, 2006
1 parent 9d7ab1f commit 2f72ba4
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions arch/sparc/mm/io-unit.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;)
Expand Down

0 comments on commit 2f72ba4

Please sign in to comment.