]> www.infradead.org Git - users/willy/pagecache.git/commit
powerpc: Implement arch_xor_unlock_is_negative_byte on 32-bit
authorMatthew Wilcox (Oracle) <willy@infradead.org>
Wed, 19 Jul 2023 19:50:04 +0000 (15:50 -0400)
committerMatthew Wilcox (Oracle) <willy@infradead.org>
Wed, 4 Oct 2023 01:18:59 +0000 (21:18 -0400)
commitc2382e3cb5bd41aab0af2189304625937dc3cc29
tree10b443fbb555943c20e0f501bd3e68f08b73e5e4
parent3f8006759c00bdc0e54367d0ed504d83b2aff609
powerpc: Implement arch_xor_unlock_is_negative_byte on 32-bit

Simply remove the ifdef.  The assembly is identical to that in the
non-optimised case of test_and_clear_bits() on PPC32, and it's not clear
to me how the PPC32 optimisation works, nor whether it would work for
arch_xor_unlock_is_negative_byte().  If that optimisation would work,
someone can implement it later, but this is more efficient than the
implementation in filemap.c.

Signed-off-by: Matthew Wilcox (Oracle) <willy@infradead.org>
arch/powerpc/include/asm/bitops.h