sparc32: fix cpuid_patch run-time patching
authorSam Ravnborg <[email protected]>
Sun, 20 May 2012 15:24:20 +0000 (17:24 +0200)
committerDavid S. Miller <[email protected]>
Sun, 20 May 2012 20:33:35 +0000 (13:33 -0700)
We hang forever when trying to do run-time patching of instructions
identified by the cpuid_patch section

Signed-off-by: Sam Ravnborg <[email protected]>
Signed-off-by: David S. Miller <[email protected]>
arch/sparc/kernel/setup_32.c

index 635df5c9e6014d8a2d2dae9fdf214e8bcee8706c..d65b5a1c220917fb50d039cf5d264507dd60f29b 100644 (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();