x86: atomic.h memory clobbers

From: John Sheu
Date: Sat May 02 2009 - 18:47:22 EST


Looking at include/asm-i386/atomic.h, is there any particular reason
why "memory" is in the clobber list for, say, atomic_sub_and_test, and
not atomic_sub? As far as I can tell, all the possible memory
operands are already in the in/out lists, and any memory-barrier
concerns (if any) that happen to atomic_sub_and_test should apply
equally for atomic_sub.

-John Sheu
--
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/