]> git.hungrycats.org Git - linux/commit
[PATCH] ppc64: avoid speculative execution after rfid
authorAnton Blanchard <anton@samba.org>
Sat, 7 Aug 2004 07:57:04 +0000 (00:57 -0700)
committerLinus Torvalds <torvalds@ppc970.osdl.org>
Sat, 7 Aug 2004 07:57:04 +0000 (00:57 -0700)
commit3fe8bedc98380fdb5f1b9fb21a3758a96a360e71
tree03f7846862f0d250ab4f4541f1fc8a71671d0fab
parentcc7919b79f539041f008aa41b1e8f127b951a009
[PATCH] ppc64: avoid speculative execution after rfid

Due to speculative execution, a CPU may execute some instructions after the
rfid.  This makes profiles confusing, since profiling ticks could end up in
those instructions following the rfid that are never executed.

Add a branch to self after each rfid to avoid this.

Signed-off-by: Anton Blanchard <anton@samba.org>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
arch/ppc64/kernel/entry.S
arch/ppc64/kernel/head.S