From: Rabin Vincent Date: Sat, 18 Feb 2012 16:50:51 +0000 (+0100) Subject: ARM: 7332/1: extract out code patch function from kprobes X-Git-Tag: v3.4-rc1~36^2~1^3~9 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=b21d55e98ac2bbcbbeec9a8cb091f717fd95b072;p=pandora-kernel.git ARM: 7332/1: extract out code patch function from kprobes Extract out the code patching code from kprobes so that it can be used from the jump label code. Additionally, the separated code: - Uses the IS_ENABLED() macros instead of the #ifdefs for THUMB2 support - Unifies the two separate functions in kprobes, providing one function that uses stop_machine() internally, and one that can be called from stop_machine() directly - Patches the text on all CPUs only on processors requiring software broadcasting of cache operations Acked-by: Jon Medhurst Tested-by: Jon Medhurst Signed-off-by: Rabin Vincent Signed-off-by: Russell King --- Reading git-diff-tree failed