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 <sam@ravnborg.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
Sam Ravnborg 2012-05-20 17:24:20 +02:00 committed by David S. Miller
parent 8578149904
commit 9cd5f82246
1 changed files with 2 additions and 0 deletions

View File

@ -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();