lkml.org 
[lkml]   [2004]   [Aug]   [20]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [PATCH] PPC64 Better little-endian bitops
On Fri, 20 Aug 2004 17:05:26 +1000
Paul Mackerras <paulus@samba.org> 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@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/

\
 
 \ /
  Last update: 2005-03-22 14:05    [W:0.025 / U:0.512 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site