]> git.hungrycats.org Git - linux/commit
[PATCH] Work around gcc 3.3.3-hammer sched miscompilation on x86-64
authorAndrew Morton <akpm@osdl.org>
Wed, 19 May 2004 09:36:00 +0000 (02:36 -0700)
committerLinus Torvalds <torvalds@ppc970.osdl.org>
Wed, 19 May 2004 09:36:00 +0000 (02:36 -0700)
commit05d2b90d5571c51ea2cbe9213164f95dce6b829d
tree232c6a8733b5ec64535b16edf17063edd0f64cd9
parent68978ee77a87d0daa93a9089cf47cea1de0447c9
[PATCH] Work around gcc 3.3.3-hammer sched miscompilation on x86-64

From: Andi Kleen <ak@muc.de>

The new domain scheduler got miscompiled on x86-64 with gcc 3.3.3-hammer,
which is shipping with some distributions.  The kernel deadlocks eventually
under light stress on SMP systems with the right options.

After some experiments it seems this simple change avoids the
miscompilation.  It also doesn't pessimize the code unduly for other
architectures.
kernel/sched.c