Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 282481
b: refs/heads/master
c: f21ffe9
h: refs/heads/master
i:
  282479: c311d0a
v: v3
  • Loading branch information
Konrad Rzeszutek Wilk authored and Dave Airlie committed Dec 6, 2011
1 parent 540f148 commit 1dddf69
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 5 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: bcdd6b2fd603340fbb0ed9984b32a9a066f1b806
refs/heads/master: f21ffe9f6da6d3a69c518b7345c198d48d941c34
2 changes: 1 addition & 1 deletion trunk/drivers/xen/swiotlb-xen.c
Original file line number Diff line number Diff line change
Expand Up @@ -153,7 +153,7 @@ void __init xen_swiotlb_init(int verbose)
char *m = NULL;
unsigned int repeat = 3;

nr_tbl = swioltb_nr_tbl();
nr_tbl = swiotlb_nr_tbl();
if (nr_tbl)
xen_io_tlb_nslabs = nr_tbl;
else {
Expand Down
2 changes: 1 addition & 1 deletion trunk/include/linux/swiotlb.h
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ extern int swiotlb_force;

extern void swiotlb_init(int verbose);
extern void swiotlb_init_with_tbl(char *tlb, unsigned long nslabs, int verbose);
extern unsigned long swioltb_nr_tbl(void);
extern unsigned long swiotlb_nr_tbl(void);

/*
* Enumeration for sync targets
Expand Down
5 changes: 3 additions & 2 deletions trunk/lib/swiotlb.c
Original file line number Diff line number Diff line change
Expand Up @@ -110,11 +110,11 @@ setup_io_tlb_npages(char *str)
__setup("swiotlb=", setup_io_tlb_npages);
/* make io_tlb_overflow tunable too? */

unsigned long swioltb_nr_tbl(void)
unsigned long swiotlb_nr_tbl(void)
{
return io_tlb_nslabs;
}

EXPORT_SYMBOL_GPL(swiotlb_nr_tbl);
/* Note that this doesn't work with highmem page */
static dma_addr_t swiotlb_virt_to_bus(struct device *hwdev,
volatile void *address)
Expand Down Expand Up @@ -321,6 +321,7 @@ void __init swiotlb_free(void)
free_bootmem_late(__pa(io_tlb_start),
PAGE_ALIGN(io_tlb_nslabs << IO_TLB_SHIFT));
}
io_tlb_nslabs = 0;
}

static int is_swiotlb_buffer(phys_addr_t paddr)
Expand Down

0 comments on commit 1dddf69

Please sign in to comment.