[PATCH 2/2] powerpc: Use the new generic strncpy_from_user() and strnlen_user()

David Miller davem at davemloft.net
Mon May 28 13:56:40 EST 2012


From: Paul Mackerras <paulus at samba.org>
Date: Mon, 28 May 2012 13:03:47 +1000

> This is much the same as for SPARC except that we can do the find_zero()
> function more efficiently using the count-leading-zeroes instructions.
> Tested on 32-bit and 64-bit PowerPC.
> 
> Signed-off-by: Paul Mackerras <paulus at samba.org>

Looks great.

Acked-by: David S. Miller <davem at davemloft.net>

I might hack sparc64 to use 'lzd' or 'popc' on newer chips via code
patching at some point.


More information about the Linuxppc-dev mailing list