Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

powerpc: Clean ifdef usage in copy_thread()

Currently, a single ifdef covers SLB related bits and more generic ppc64
related bits, split this in two separate ifdef's since 64-bit BookE will
need one but not the other.

Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
Acked-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>

+2
+2
arch/powerpc/kernel/process.c
··· 664 664 sp_vsid |= SLB_VSID_KERNEL | llp; 665 665 p->thread.ksp_vsid = sp_vsid; 666 666 } 667 + #endif /* CONFIG_PPC_STD_MMU_64 */ 667 668 668 669 /* 669 670 * The PPC64 ABI makes use of a TOC to contain function ··· 672 671 * to the TOC entry. The first entry is a pointer to the actual 673 672 * function. 674 673 */ 674 + #ifdef CONFIG_PPC64 675 675 kregs->nip = *((unsigned long *)ret_from_fork); 676 676 #else 677 677 kregs->nip = (unsigned long)ret_from_fork;