aboutsummaryrefslogtreecommitdiffstats
path: root/arch/sparc/kernel/setup_64.c
diff options
context:
space:
mode:
authorDavid S. Miller <davem@davemloft.net>2012-10-28 16:04:47 -0400
committerDavid S. Miller <davem@davemloft.net>2012-10-28 16:04:47 -0400
commit187818cd6a5ab6343eac47e52da2f3e40c544b98 (patch)
tree09b55dad78359ae7e047f3eb533844adaa4094c6 /arch/sparc/kernel/setup_64.c
parente9b9eb59ffcdee09ec96b040f85c919618f4043e (diff)
sparc64: Improvde documentation and readability of atomic backoff code.
Document what's going on in asm/backoff.h with a large and descriptive comment. Refer to it above the cpu_relax() definition in asm/processor_64.h Rename the pause patching section to have "3insn" in it's name like the other patching sections do. Based upon feedback from Sam Ravnborg. Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'arch/sparc/kernel/setup_64.c')
-rw-r--r--arch/sparc/kernel/setup_64.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/arch/sparc/kernel/setup_64.c b/arch/sparc/kernel/setup_64.c
index b45cff408de3..0eaf0059aaef 100644
--- a/arch/sparc/kernel/setup_64.c
+++ b/arch/sparc/kernel/setup_64.c
@@ -320,8 +320,8 @@ static void __init pause_patch(void)
320{ 320{
321 struct pause_patch_entry *p; 321 struct pause_patch_entry *p;
322 322
323 p = &__pause_patch; 323 p = &__pause_3insn_patch;
324 while (p < &__pause_patch_end) { 324 while (p < &__pause_3insn_patch_end) {
325 unsigned long i, addr = p->addr; 325 unsigned long i, addr = p->addr;
326 326
327 for (i = 0; i < 3; i++) { 327 for (i = 0; i < 3; i++) {