Re: [PATCH] PPC64 Better little-endian bitops

From: David S. Miller
Date: Fri Aug 20 2004 - 12:05:22 EST


On Fri, 20 Aug 2004 17:05:26 +1000
Paul Mackerras <paulus@xxxxxxxxx> wrote:

> Below patch reuses the big-endian bitops for the little endian ones, and
> moves the ext2_{set,clear}_bit_atomic functions to be truly atomic
> instead of lock based.
>
> This requires that the bitmaps passed to the ext2_* bitop functions
> are 8-byte aligned. I have been assured that they will be 512-byte or
> 1024-byte aligned, and sparc and ppc32 also impose an alignment
> requirement on the bitmap.

Nice. I noticed this trick before in the s390 headers.
I'll do this on sparc64 too...
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/