powerpc: Add jump label support
authorMichael Ellerman <michael@ellerman.id.au>
Wed, 29 Jun 2011 19:16:59 +0000 (19:16 +0000)
committerBenjamin Herrenschmidt <benh@kernel.crashing.org>
Fri, 1 Jul 2011 03:48:55 +0000 (13:48 +1000)
commitac5f89c7d87f6f2fb7073723fc943488d9c3479d
treef7373ad0d4af2c937a420f3909284814d4487535
parent87fa35dd881fd61a2a8166892366f2c22c34a1fa
powerpc: Add jump label support

This patch adds support for the new "jump label" feature.

Unlike x86 and sparc we just merrily patch the code with no locks etc,
as far as I know this is safe, but I'm not really sure what the x86/sparc
code is protecting against so maybe it's not.

I also don't see any reason for us to implement the poke_early() routine,
even though sparc does.

[BenH: Updated the patch to upstream generic changes]

Signed-off-by: Michael Ellerman <michael@ellerman.id.au>
Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
arch/powerpc/Kconfig
arch/powerpc/include/asm/jump_label.h [new file with mode: 0644]
arch/powerpc/kernel/Makefile
arch/powerpc/kernel/jump_label.c [new file with mode: 0644]