diff options
author | Stewart Smith <stewart@linux.vnet.ibm.com> | 2015-05-29 16:49:41 +1000 |
---|---|---|
committer | Stewart Smith <stewart@linux.vnet.ibm.com> | 2015-05-29 16:49:41 +1000 |
commit | 9daee5c3edab395b6a2e729b3fe3728dbc7e4bf6 (patch) | |
tree | 4b152274bbfb735b8eb54d3e5fd8c1a02238686c /core/cpu.c | |
parent | 067852584a7c8f0cecfdf1d3295b9de5dff07215 (diff) | |
download | skiboot-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.c | 12 |
1 files changed, 0 insertions, 12 deletions
@@ -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, |