From: Benjamin Herrenschmidt Date: Sun, 14 Jun 2009 16:16:10 +0000 (+0000) Subject: powerpc: Add memory clobber to mtspr() X-Git-Tag: v2.6.31-rc1~110^2~4 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=2fae0a524b193e200b71778407ad29b22417056a;p=pandora-kernel.git powerpc: Add memory clobber to mtspr() Without this clobber, mtspr can be re-ordered by gcc vs. surrounding memory accesses. While this might be ok for some cases, it's not in others and I'm not confident that all callers get it right (In fact I'm sure some of them don't). So for now, let's make mtspr() itself contain a memory clobber until we can audit and fix everything, at which point we can remove it if we think it's worth doing so. Signed-off-by: Benjamin Herrenschmidt --- Reading git-diff-tree failed