iommu/amd: Optimize alloc_new_range for new fetch_pte interface
authorJoerg Roedel <jroedel@suse.de>
Wed, 1 Apr 2015 12:58:50 +0000 (14:58 +0200)
committerJoerg Roedel <jroedel@suse.de>
Thu, 2 Apr 2015 11:31:08 +0000 (13:31 +0200)
commit5d7c94c3f4f20964b217d64ee44a9a08320c315a
treef8100a32e161166db6547d92819fbb64cc28e73a
parent71b390e9bec5121d25c45326ff0b0b96a143f9a8
iommu/amd: Optimize alloc_new_range for new fetch_pte interface

Now that fetch_pte returns the page-size of the pte, the
call in this function can also be optimized a little bit.

Tested-by: Suravee Suthikulpanit <Suravee.Suthikulpanit@amd.com>
Signed-off-by: Joerg Roedel <jroedel@suse.de>
drivers/iommu/amd_iommu.c