Skip to content

Commit

Permalink
Pull swiotlb-size into release branch
Browse files Browse the repository at this point in the history
  • Loading branch information
Tony Luck committed Aug 29, 2005
2 parents 95ecc5e + e8579e7 commit 3ec8a77
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions arch/ia64/lib/swiotlb.c
Original file line number Diff line number Diff line change
Expand Up @@ -93,8 +93,7 @@ static int __init
setup_io_tlb_npages(char *str)
{
if (isdigit(*str)) {
io_tlb_nslabs = simple_strtoul(str, &str, 0) <<
(PAGE_SHIFT - IO_TLB_SHIFT);
io_tlb_nslabs = simple_strtoul(str, &str, 0);
/* avoid tail segment of size < IO_TLB_SEGSIZE */
io_tlb_nslabs = ALIGN(io_tlb_nslabs, IO_TLB_SEGSIZE);
}
Expand All @@ -117,7 +116,7 @@ swiotlb_init_with_default_size (size_t default_size)
unsigned long i;

if (!io_tlb_nslabs) {
io_tlb_nslabs = (default_size >> PAGE_SHIFT);
io_tlb_nslabs = (default_size >> IO_TLB_SHIFT);
io_tlb_nslabs = ALIGN(io_tlb_nslabs, IO_TLB_SEGSIZE);
}

Expand Down

0 comments on commit 3ec8a77

Please sign in to comment.