]> pilppa.com Git - linux-2.6-omap-h63xx.git/commit
i386: fix early usage of atomic_add_return and local_add_return on real i386
authorThomas Gleixner <tglx@linutronix.de>
Wed, 23 May 2007 20:58:19 +0000 (13:58 -0700)
committerLinus Torvalds <torvalds@woody.linux-foundation.org>
Thu, 24 May 2007 03:14:15 +0000 (20:14 -0700)
commit03491c92932b8d2dab1bb298e0122ff6d39680af
tree96db84a9e5c502b7d6890d1af6c94c3f96e83087
parent98d8256739f2c6c636fa2da359f5949c739ae839
i386: fix early usage of atomic_add_return and local_add_return on real i386

The check (boot_cpu_data.x86 == 3) in atomic_add_return() and
local_add_return() fails, when those operations are used before
boot_cpu_data is filled in.

Change the check to (boot_cpu_data.x86 <= 3) to fix this.

Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
include/asm-i386/atomic.h
include/asm-i386/local.h