]> git.karo-electronics.de Git - linux-beck.git/commit
x86: fix abuse of per_cpu_offset
authorBrian Gerst <brgerst@gmail.com>
Sun, 8 Feb 2009 14:58:40 +0000 (09:58 -0500)
committerIngo Molnar <mingo@elte.hu>
Mon, 9 Feb 2009 09:30:30 +0000 (10:30 +0100)
commit44581a28e805a31661469c4b466b9cd14b36e7b6
tree090a4259cf5812a234b3dafcb626d20dae078558
parent2add8e235cbe0dcd672c33fc322754e15500238c
x86: fix abuse of per_cpu_offset

Impact: bug fix

Don't use per_cpu_offset() to determine if it valid to access a
per-cpu variable for a given cpu number.  It is not a valid assumption
on x86-64 anymore. Use cpu_possible() instead.

Signed-off-by: Brian Gerst <brgerst@gmail.com>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
arch/x86/mm/numa_64.c