Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 271558
b: refs/heads/master
c: 5da14a4
h: refs/heads/master
v: v3
  • Loading branch information
Ohad Ben-Cohen authored and Joerg Roedel committed Aug 26, 2011
1 parent d09d5b3 commit ea3414b
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 4 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: e1f2381332825f04b9816f354fdd48f17dc6193d
refs/heads/master: 5da14a471455bd725534d18604b4d89ffbe158df
19 changes: 16 additions & 3 deletions trunk/drivers/iommu/omap-iommu.c
Original file line number Diff line number Diff line change
Expand Up @@ -253,6 +253,7 @@ static struct cr_regs __iotlb_read_cr(struct iommu *obj, int n)
* @obj: target iommu
* @e: an iommu tlb entry info
**/
#ifdef PREFETCH_IOTLB
static int load_iotlb_entry(struct iommu *obj, struct iotlb_entry *e)
{
int err = 0;
Expand Down Expand Up @@ -310,6 +311,20 @@ static int load_iotlb_entry(struct iommu *obj, struct iotlb_entry *e)
return err;
}

#else /* !PREFETCH_IOTLB */

static int load_iotlb_entry(struct iommu *obj, struct iotlb_entry *e)
{
return 0;
}

#endif /* !PREFETCH_IOTLB */

static int prefetch_iotlb_entry(struct iommu *obj, struct iotlb_entry *e)
{
return load_iotlb_entry(obj, e);
}

/**
* flush_iotlb_page - Clear an iommu tlb entry
* @obj: target iommu
Expand Down Expand Up @@ -663,10 +678,8 @@ int iopgtable_store_entry(struct iommu *obj, struct iotlb_entry *e)

flush_iotlb_page(obj, e->da);
err = iopgtable_store_entry_core(obj, e);
#ifdef PREFETCH_IOTLB
if (!err)
load_iotlb_entry(obj, e);
#endif
prefetch_iotlb_entry(obj, e);
return err;
}
EXPORT_SYMBOL_GPL(iopgtable_store_entry);
Expand Down

0 comments on commit ea3414b

Please sign in to comment.