From: Benjamin Herrenschmidt Date: Thu, 20 Jan 2011 20:36:03 +0000 (+0000) Subject: powerpc: Pass the right cpu_spec to ->setup_cpu() on 64-bit X-Git-Tag: v2.6.38-rc4~3^2~10 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=af9eef3c7b1ed004c378c89b87642f4937337d50;p=pandora-kernel.git 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 --- Reading git-diff-tree failed