From: Haavard Skinnemoen Date: Tue, 24 Oct 2006 08:12:42 +0000 (+0200) Subject: [PATCH] AVR32: Fix oversize immediates in atomic.h X-Git-Tag: v2.6.19-rc4~82 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=fa3522407f01ead1ec14bdd6b785ea08d17d500d;p=pandora-kernel.git [PATCH] AVR32: Fix oversize immediates in atomic.h When calling e.g. atomic_sub_return with a large constant, the compiler may output an immediate that is too large for the sub instruction in the middle of the loop. Fix this by explicitly specifying the number of bits allowed in the constraint. Also stop atomic_add_return() and friends from falling back to their respective "sub" variants if the constant is too large to fit in an immediate. Signed-off-by: Haavard Skinnemoen Signed-off-by: Linus Torvalds --- Reading git-diff-tree failed