diff options
author | David S. Miller <davem@davemloft.net> | 2012-10-28 16:04:47 -0400 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2012-10-28 16:04:47 -0400 |
commit | 187818cd6a5ab6343eac47e52da2f3e40c544b98 (patch) | |
tree | 09b55dad78359ae7e047f3eb533844adaa4094c6 /arch/sparc/kernel | |
parent | e9b9eb59ffcdee09ec96b040f85c919618f4043e (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')
-rw-r--r-- | arch/sparc/kernel/entry.h | 4 | ||||
-rw-r--r-- | arch/sparc/kernel/setup_64.c | 4 | ||||
-rw-r--r-- | arch/sparc/kernel/vmlinux.lds.S | 8 |
3 files changed, 8 insertions, 8 deletions
diff --git a/arch/sparc/kernel/entry.h b/arch/sparc/kernel/entry.h index 51742df63c75..cc3c5cb47cda 100644 --- a/arch/sparc/kernel/entry.h +++ b/arch/sparc/kernel/entry.h | |||
@@ -63,8 +63,8 @@ struct pause_patch_entry { | |||
63 | unsigned int addr; | 63 | unsigned int addr; |
64 | unsigned int insns[3]; | 64 | unsigned int insns[3]; |
65 | }; | 65 | }; |
66 | extern struct pause_patch_entry __pause_patch, | 66 | extern struct pause_patch_entry __pause_3insn_patch, |
67 | __pause_patch_end; | 67 | __pause_3insn_patch_end; |
68 | 68 | ||
69 | extern void __init per_cpu_patch(void); | 69 | extern void __init per_cpu_patch(void); |
70 | extern void sun4v_patch_1insn_range(struct sun4v_1insn_patch_entry *, | 70 | extern void sun4v_patch_1insn_range(struct sun4v_1insn_patch_entry *, |
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++) { |
diff --git a/arch/sparc/kernel/vmlinux.lds.S b/arch/sparc/kernel/vmlinux.lds.S index 847f9f793618..0bacceb19150 100644 --- a/arch/sparc/kernel/vmlinux.lds.S +++ b/arch/sparc/kernel/vmlinux.lds.S | |||
@@ -132,10 +132,10 @@ SECTIONS | |||
132 | *(.popc_6insn_patch) | 132 | *(.popc_6insn_patch) |
133 | __popc_6insn_patch_end = .; | 133 | __popc_6insn_patch_end = .; |
134 | } | 134 | } |
135 | .pause_patch : { | 135 | .pause_3insn_patch : { |
136 | __pause_patch = .; | 136 | __pause_3insn_patch = .; |
137 | *(.pause_patch) | 137 | *(.pause_3insn_patch) |
138 | __pause_patch_end = .; | 138 | __pause_3insn_patch_end = .; |
139 | } | 139 | } |
140 | PERCPU_SECTION(SMP_CACHE_BYTES) | 140 | PERCPU_SECTION(SMP_CACHE_BYTES) |
141 | 141 | ||