]> git.karo-electronics.de Git - linux-beck.git/commit
powerpc: Initialise paca.data_offset with poison
authorMichael Ellerman <michael@ellerman.id.au>
Fri, 7 Sep 2012 15:31:44 +0000 (15:31 +0000)
committerBenjamin Herrenschmidt <benh@kernel.crashing.org>
Sun, 9 Sep 2012 23:35:27 +0000 (09:35 +1000)
commit407821a34fce89b4f0b031dbab5cec7d059f46bc
tree36aa8357700f25acac080003fbed376f737ca1b4
parent06c887666803608c3efe3807eba0e362307db7c4
powerpc: Initialise paca.data_offset with poison

It's possible for the cpu_possible_mask to change between the time we
initialise the pacas and the time we setup per_cpu areas.

Obviously impossible cpus shouldn't ever be running, but stranger things
have happened. So be paranoid and initialise data_offset with a poison
value in case we don't set it up later.

Based on a patch from Anton Blanchard.

Signed-off-by: Michael Ellerman <michael@ellerman.id.au>
Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
arch/powerpc/kernel/paca.c