aboutsummaryrefslogtreecommitdiff
path: root/arch/ia64
diff options
context:
space:
mode:
authorTony Luck <tony.luck@intel.com>2005-08-29 14:14:18 -0700
committerTony Luck <tony.luck@intel.com>2005-08-29 14:14:18 -0700
commit3ec8a773d2775db86cc21d28b77bea29c8a1ea3c (patch)
tree6318ed9ec67651f182fb0f0c966ca7b5dd12ba35 /arch/ia64
parent95ecc5e5a3b20a3c76164d089c69051662e9d9b3 (diff)
parente8579e72ca240f3fbaa669f09a9d610436505366 (diff)
Pull swiotlb-size into release branch
Diffstat (limited to 'arch/ia64')
-rw-r--r--arch/ia64/lib/swiotlb.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/arch/ia64/lib/swiotlb.c b/arch/ia64/lib/swiotlb.c
index ab7b3ad99a7..dbc0b3e449c 100644
--- a/arch/ia64/lib/swiotlb.c
+++ b/arch/ia64/lib/swiotlb.c
@@ -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);
}
@@ -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);
}