summaryrefslogtreecommitdiff
path: root/include/linux/raid
diff options
context:
space:
mode:
authorJason Gunthorpe <jgg@nvidia.com>2026-04-07 14:45:22 +0800
committerJoerg Roedel <joerg.roedel@amd.com>2026-05-19 10:38:19 +0200
commit9785df3fd67083ac10f6bde83a316286044a66f1 (patch)
tree1de18ca8572720444a1fd8c87ca5675af19e9980 /include/linux/raid
parent5200f5f493f79f14bbdc349e402a40dfb32f23c8 (diff)
iommu/vt-d: Simplify calculate_psi_aligned_address()
This is doing far too much math for the simple task of finding a power of 2 that fully spans the given range. Use fls directly on the xor which computes the common binary prefix. Signed-off-by: Jason Gunthorpe <jgg@nvidia.com> Reviewed-by: Kevin Tian <kevin.tian@intel.com> Link: https://lore.kernel.org/r/0-v2-895748900b39+5303-iommupt_inv_vtd_jgg@nvidia.com Signed-off-by: Lu Baolu <baolu.lu@linux.intel.com> Signed-off-by: Joerg Roedel <joerg.roedel@amd.com>
Diffstat (limited to 'include/linux/raid')
0 files changed, 0 insertions, 0 deletions