]> git.baikalelectronics.ru Git - kernel.git/commit
[PATCH] x86_64: Let impossible CPUs point to reference per cpu data
authorAndi Kleen <ak@suse.de>
Fri, 3 Feb 2006 20:51:56 +0000 (21:51 +0100)
committerLinus Torvalds <torvalds@g5.osdl.org>
Sun, 5 Feb 2006 00:43:15 +0000 (16:43 -0800)
commit07c639c1ee31a3f6e10848828d1f61af81b4a9d4
tree16e04e07d4212217e597d79432ad03c2b3856855
parent596e7f6bf2a6dcfee65c0a53cf1dce62ed0baa77
[PATCH] x86_64: Let impossible CPUs point to reference per cpu data

Hack for 2.6.16. In 2.6.17 all code that uses NR_CPUs should
be audited and changed to only touch possible CPUs.

Don't mark the reference per cpu data init data (so it stays
around after boot) and point all impossible CPUs to it. This way
they reference some valid - although shared memory. Usually
this is only initialization like INIT_LIST_HEADs and there
won't be races because these CPUs never run. Still somewhat hackish.

Signed-off-by: Andi Kleen <ak@suse.de>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
arch/x86_64/kernel/vmlinux.lds.S