]> git.baikalelectronics.ru Git - kernel.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)
commit148f3949f17efed96316c4f7fbb5036843f1f33d
tree36aa8357700f25acac080003fbed376f737ca1b4
parent7ef0fc911895318fcf1ced2369421544b3984dea
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