aboutsummaryrefslogtreecommitdiff
path: root/core/cpu.c
diff options
context:
space:
mode:
authorStewart Smith <stewart@linux.vnet.ibm.com>2015-05-29 16:49:41 +1000
committerStewart Smith <stewart@linux.vnet.ibm.com>2015-05-29 16:49:41 +1000
commit9daee5c3edab395b6a2e729b3fe3728dbc7e4bf6 (patch)
tree4b152274bbfb735b8eb54d3e5fd8c1a02238686c /core/cpu.c
parent067852584a7c8f0cecfdf1d3295b9de5dff07215 (diff)
downloadskiboot-9daee5c3edab395b6a2e729b3fe3728dbc7e4bf6.zip
skiboot-9daee5c3edab395b6a2e729b3fe3728dbc7e4bf6.tar.gz
skiboot-9daee5c3edab395b6a2e729b3fe3728dbc7e4bf6.tar.bz2
Make cpu_relax() inline
This modifies code output when built with GCOV so that the store of counter data is out of some of the loops, thus improving things when built with gcov. Also, likely makes us do even less work when relaxing, so probably a good thing. Signed-off-by: Stewart Smith <stewart@linux.vnet.ibm.com>
Diffstat (limited to 'core/cpu.c')
-rw-r--r--core/cpu.c12
1 files changed, 0 insertions, 12 deletions
diff --git a/core/cpu.c b/core/cpu.c
index e4698d4..6812ff0 100644
--- a/core/cpu.c
+++ b/core/cpu.c
@@ -80,18 +80,6 @@ unsigned long __attrconst cpu_stack_top(unsigned int pir)
NORMAL_STACK_SIZE - STACK_TOP_GAP;
}
-void __nomcount cpu_relax(void)
-{
- /* Relax a bit to give sibling threads some breathing space */
- smt_low();
- smt_very_low();
- asm volatile("nop; nop; nop; nop;\n"
- "nop; nop; nop; nop;\n"
- "nop; nop; nop; nop;\n"
- "nop; nop; nop; nop;\n");
- smt_medium();
-}
-
struct cpu_job *__cpu_queue_job(struct cpu_thread *cpu,
const char *name,
void (*func)(void *data), void *data,