powerpc: Create a helper for getting the kernel toc value
authorMichael Ellerman <mpe@ellerman.id.au>
Thu, 3 Mar 2016 04:26:53 +0000 (15:26 +1100)
committerMichael Ellerman <mpe@ellerman.id.au>
Mon, 7 Mar 2016 03:53:52 +0000 (14:53 +1100)
commita5cab83cd3d2d75d3893276cb5f27e163484ef04
tree1281c0987bde07bf74e452025e99a9f75ff38b95
parent388f7b1d6e8ca06762e2454d28d6c3c55ad0fe95
powerpc: Create a helper for getting the kernel toc value

Move the logic to work out the kernel toc pointer into a header. This is
a good cleanup, and also means we can use it elsewhere in future.

Reviewed-by: Kamalesh Babulal <kamalesh@linux.vnet.ibm.com>
Reviewed-by: Torsten Duwe <duwe@suse.de>
Reviewed-by: Balbir Singh <bsingharora@gmail.com>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Tested-by: Kamalesh Babulal <kamalesh@linux.vnet.ibm.com>
arch/powerpc/include/asm/sections.h
arch/powerpc/kernel/paca.c