]> git.baikalelectronics.ru Git - kernel.git/commit
powerpc: Pass the right cpu_spec to ->setup_cpu() on 64-bit
authorBenjamin Herrenschmidt <benh@kernel.crashing.org>
Thu, 20 Jan 2011 20:36:03 +0000 (20:36 +0000)
committerBenjamin Herrenschmidt <benh@kernel.crashing.org>
Mon, 7 Feb 2011 01:47:57 +0000 (12:47 +1100)
commita06b7a21a1b741b926b6d14722a4f3ec62bc01d4
treef71e3720f3f69711126bea0f2cd5cd5f0fc68894
parentfdc76a0453c32d98ebf6112d7befdfe166b193bd
powerpc: Pass the right cpu_spec to ->setup_cpu() on 64-bit

When calling setup_cpu() on 64-bit, we pass a pointer to the
cputable entry we have found. This used to be fine when cur_cpu_spec
was a pointer to that entry, but nowadays, we copy the entry into
a separate variable, and we do so before we call the setup_cpu()
callback. That means that any attempt by that callback at patching
the CPU table entry (to adjust CPU features for example) will patch
the wrong table.

Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
arch/powerpc/kernel/cputable.c