/* Use global flush state to avoid races with multiple flushers.  */
static void flush_gart(void)
/* Use global flush state to avoid races with multiple flushers.  */
static void flush_gart(void)
{
	unsigned long flags;
	spin_lock_irqsave(&iommu_bitmap_lock, flags);
	if (need_flush) {
		k8_flush_garts();
		need_flush = false;
	}
	spin_unlock_irqrestore(&iommu_bitmap_lock, flags);
}