question about arch/ia64/kernel/iosapic.c

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



I have the impression that ioremap should not be called with locks held.  
Is this the case?  If so, what should be done in the following code (from 
the function iosapic_init):

        spin_lock_irqsave(&iosapic_lock, flags);
        index = find_iosapic(gsi_base);
        if (index >= 0) {
                spin_unlock_irqrestore(&iosapic_lock, flags);
                return -EBUSY;
        }

        addr = ioremap(phys_addr, 0);
        if (addr == NULL) {
                spin_unlock_irqrestore(&iosapic_lock, flags);
                return -ENOMEM;
        }

thanks,
julia
--
To unsubscribe from this list: send the line "unsubscribe linux-ia64" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html


[Index of Archives]     [Linux Kernel]     [Sparc Linux]     [DCCP]     [Linux ARM]     [Yosemite News]     [Linux SCSI]     [Linux x86_64]     [Linux for Ham Radio]

  Powered by Linux