linux/arch/nios2/include/asm
Christian Borntraeger 79ab11cdb9 locking/core: Introduce cpu_relax_yield()
For spinning loops people do often use barrier() or cpu_relax().
For most architectures cpu_relax and barrier are the same, but on
some architectures cpu_relax can add some latency.
For example on power,sparc64 and arc, cpu_relax can shift the CPU
towards other hardware threads in an SMT environment.
On s390 cpu_relax does even more, it uses an hypercall to the
hypervisor to give up the timeslice.
In contrast to the SMT yielding this can result in larger latencies.
In some places this latency is unwanted, so another variant
"cpu_relax_lowlatency" was introduced. Before this is used in more
and more places, lets revert the logic and provide a cpu_relax_yield
that can be called in places where yielding is more important than
latency. By default this is the same as cpu_relax on all architectures.

Signed-off-by: Christian Borntraeger <borntraeger@de.ibm.com>
Signed-off-by: Peter Zijlstra (Intel) <peterz@infradead.org>
Cc: Catalin Marinas <catalin.marinas@arm.com>
Cc: Heiko Carstens <heiko.carstens@de.ibm.com>
Cc: Linus Torvalds <torvalds@linux-foundation.org>
Cc: Martin Schwidefsky <schwidefsky@de.ibm.com>
Cc: Nicholas Piggin <npiggin@gmail.com>
Cc: Noam Camus <noamc@ezchip.com>
Cc: Peter Zijlstra <peterz@infradead.org>
Cc: Russell King <linux@armlinux.org.uk>
Cc: Thomas Gleixner <tglx@linutronix.de>
Cc: Will Deacon <will.deacon@arm.com>
Cc: linuxppc-dev@lists.ozlabs.org
Cc: virtualization@lists.linux-foundation.org
Cc: xen-devel@lists.xenproject.org
Link: http://lkml.kernel.org/r/1477386195-32736-2-git-send-email-borntraeger@de.ibm.com
Signed-off-by: Ingo Molnar <mingo@kernel.org>
2016-11-16 10:15:09 +01:00
..
asm-macros.h
asm-offsets.h
cache.h
cacheflush.h
checksum.h ipv4: Update parameters for csum_tcpudp_magic to their original types 2016-03-13 23:55:13 -04:00
cmpxchg.h nios2: Switch to generic __xchg() 2015-11-09 10:33:30 +08:00
cpuinfo.h nios2: use of_property_read_bool 2016-10-06 18:19:16 +08:00
delay.h
dma-mapping.h nios2: convert to dma_map_ops 2016-01-20 17:09:18 -08:00
elf.h
entry.h
io.h nios2: use correct void* return type for page_to_virt() 2016-04-22 10:08:26 +01:00
irq.h
irqflags.h
Kbuild Merge branch 'strscpy' of git://git.kernel.org/pub/scm/linux/kernel/git/cmetcalf/linux-tile 2015-10-04 16:31:13 +01:00
kgdb.h nios2: add kgdb support 2015-02-16 19:26:43 +08:00
linkage.h
mmu_context.h
mmu.h
page.h nios2: use correct void* return type for page_to_virt() 2016-04-22 10:08:26 +01:00
pgalloc.h nios2: get rid of superfluous __GFP_REPEAT 2016-06-24 17:23:52 -07:00
pgtable-bits.h nios2: drop _PAGE_FILE and pte_file()-related helpers 2015-02-10 14:30:32 -08:00
pgtable.h nios2: use correct void* return type for page_to_virt() 2016-04-22 10:08:26 +01:00
processor.h locking/core: Introduce cpu_relax_yield() 2016-11-16 10:15:09 +01:00
prom.h nios2: add early printk support 2015-02-10 23:21:08 +08:00
ptrace.h nios2: update pt_regs 2015-03-12 13:35:06 +08:00
registers.h
setup.h
shmparam.h nios2: rework cache 2015-04-24 14:49:53 +08:00
signal.h
string.h
switch_to.h
syscall.h
syscalls.h
thread_info.h Merge branch 'exec_domain_rip_v2' of git://git.kernel.org/pub/scm/linux/kernel/git/rw/misc 2015-04-15 13:53:55 -07:00
timex.h
tlb.h
tlbflush.h
traps.h
uaccess.h nios2: fix __get_user() 2016-09-13 17:49:43 -04:00