summaryrefslogtreecommitdiffstats
path: root/drivers/ata/pata_octeon_cf.c
diff options
context:
space:
mode:
authorWill Deacon <will.deacon@arm.com>2014-07-30 11:33:25 +0100
committerWill Deacon <will.deacon@arm.com>2014-09-16 19:14:57 +0100
commitc757e8528a304214d0a9be2e99011b94bf374d37 (patch)
tree616522ae592a60aa42bc24fef57e445e3835fca6 /drivers/ata/pata_octeon_cf.c
parent844e35bdfe834fccb5def1bc4cd614ca22409d0c (diff)
downloadtalos-op-linux-c757e8528a304214d0a9be2e99011b94bf374d37.tar.gz
talos-op-linux-c757e8528a304214d0a9be2e99011b94bf374d37.zip
iommu/arm-smmu: use page shift instead of page size to avoid division
Arbitrary integer division is not available in all ARM CPUs, so the GCC may spit out calls to helper functions which are not implemented in the kernel. This patch avoids these problems in the SMMU driver by using page shift instead of page size, so that divisions by the page size (as required by the vSMMU code) can be expressed as a simple right shift. Signed-off-by: Will Deacon <will.deacon@arm.com>
Diffstat (limited to 'drivers/ata/pata_octeon_cf.c')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud