OSDN Git Service

[SPARC]: Initialize iounit spinlock in iounit_init().
authorRaymond Burns <rayburns@comcast.net>
Tue, 18 Jul 2006 04:40:27 +0000 (21:40 -0700)
committerDavid S. Miller <davem@sunset.davemloft.net>
Fri, 21 Jul 2006 21:18:13 +0000 (14:18 -0700)
Signed-off-by: David S. Miller <davem@davemloft.net>
arch/sparc/mm/io-unit.c

index 42c1c70..2bb1309 100644 (file)
@@ -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;)