From: Sam Ravnborg Date: Sun, 20 May 2012 15:24:20 +0000 (+0200) Subject: sparc32: fix cpuid_patch run-time patching X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=9cd5f82246b724aae402959bffe0441b45a01a1c;p=linux-beck.git sparc32: fix cpuid_patch run-time patching We hang forever when trying to do run-time patching of instructions identified by the cpuid_patch section Signed-off-by: Sam Ravnborg Signed-off-by: David S. Miller --- diff --git a/arch/sparc/kernel/setup_32.c b/arch/sparc/kernel/setup_32.c index 635df5c9e601..d65b5a1c2209 100644 --- a/arch/sparc/kernel/setup_32.c +++ b/arch/sparc/kernel/setup_32.c @@ -229,6 +229,8 @@ static void __init per_cpu_patch(void) *(unsigned int *) (addr + 0) = insns[0]; *(unsigned int *) (addr + 4) = insns[1]; *(unsigned int *) (addr + 8) = insns[2]; + + p++; } #ifdef CONFIG_SMP local_ops->cache_all();