Thread (10 messages) 10 messages, 2 authors, 2014-07-07

Re: [PATCH 1/3] iommu/fsl: Fix PAMU window size check.

From: Joerg Roedel <joro@8bytes.org>
Date: 2014-07-04 10:44:34
Also in: linux-iommu, lkml

On Tue, Jun 24, 2014 at 07:27:15PM +0530, Varun Sethi wrote:
 	/* window size is 2^(WSE+1) bytes */
-	return __ffs(addrspace_size) - 1;
+	return fls64(addrspace_size) - 2;
This looks bogus, why do you replace ffs (find-first-bit) by fls
(find-last-bit)?


	Joerg
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help