From: Benjamin Herrenschmidt Date: Tue, 4 Sep 2012 15:08:28 +0000 (+0000) Subject: powerpc: Don't use __put_user() in patch_instruction X-Git-Tag: v3.6-rc5~13^2 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=636802ef96eebe279b22ad9f9dacfe29291e45c7;p=pandora-kernel.git powerpc: Don't use __put_user() in patch_instruction patch_instruction() can be called very early on ppc32, when the kernel isn't yet running at it's linked address. That can cause the ! is_kernel_addr() test in __put_user() to trip and call might_sleep() which is very bad at that point during boot. Use a lower level function instead for now, at least until we get to rework ppc32 boot process to do the code patching later, like ppc64 does. Signed-off-by: Benjamin Herrenschmidt --- Reading git-diff-tree failed