powerpc: Don't write protect kernel text with CONFIG_DYNAMIC_FTRACE enabled
authorStefan Roese <sr@denx.de>
Thu, 14 Apr 2011 23:49:53 +0000 (23:49 +0000)
committerBenjamin Herrenschmidt <benh@kernel.crashing.org>
Mon, 18 Apr 2011 03:08:21 +0000 (13:08 +1000)
commit09597cfe93d3cc2c6e064a3ead5956b882511560
tree9b5912a2576e413aa8bbe1c0da20a19ed54c6e82
parent84ffae55af79d7b8834fd0c08d0d1ebf2c77f91e
powerpc: Don't write protect kernel text with CONFIG_DYNAMIC_FTRACE enabled

This problem was noticed on an MPC855T platform. Ftrace did oops
when trying to write to the kernel text segment.

Many thanks to Joakim for finding the root cause of this problem.

Signed-off-by: Stefan Roese <sr@denx.de>
Cc: Joakim Tjernlund <joakim.tjernlund@transmode.se>
Cc: Benjamin Herrenschmidt <benh@kernel.crashing.org>
Cc: Steven Rostedt <rostedt@goodmis.org>
Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
arch/powerpc/include/asm/pte-common.h