linux/arch/m68k/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
..
a.out-core.h
adb_iop.h
amigahw.h
amigaints.h
amigayle.h
amipcmcia.h
apollohw.h
asm-offsets.h
atafd.h
atafdreg.h
atari_joystick.h
atari_stdma.h atari_scsi: Fix atari_scsi deadlocks on Falcon 2014-11-20 09:11:13 +01:00
atari_stram.h
atarihw.h
atariints.h m68k/atari: Remove obsolete IRQ_TYPE_* 2015-01-15 13:44:51 +01:00
atarikb.h
atomic.h locking/atomic, arch/m68k: Remove comment 2016-06-20 11:25:50 +02:00
bitops.h
blinken.h
bootinfo.h m68k: generalize uboot command line support 2016-09-26 12:02:59 +10:00
bootstd.h
bug.h
bugs.h
bvme6000hw.h
cache.h
cacheflush.h
cacheflush_mm.h
cacheflush_no.h
checksum.h ipv6: Pass proto to csum_ipv6_magic as __u8 instead of unsigned short 2016-03-13 23:55:13 -04:00
cmpxchg.h arch: Remove __ARCH_HAVE_CMPXCHG 2015-05-13 10:55:42 +02:00
coldfire.h m68knommu: force setting of CONFIG_CLOCK_FREQ for ColdFire 2015-07-13 09:34:39 +10:00
contregs.h
current.h
delay.h
div64.h
dma-mapping.h dma-mapping: always provide the dma_map_ops based implementation 2016-01-20 17:09:18 -08:00
dma.h m68k: Assorted spelling fixes 2016-07-03 14:05:28 +02:00
dsp56k.h
dvma.h
elf.h
entry.h
export.h m68k: move exports to definitions 2016-08-07 23:47:19 -04:00
fb.h
fbio.h
flat.h m68k: enable binfmt_flat on systems with an MMU 2016-07-28 13:29:13 +10:00
floppy.h
fpu.h
ftrace.h
gpio.h
hardirq.h
hash.h m68k: Add <asm/hash.h> 2016-05-28 15:48:57 -04:00
hp300hw.h
hwtest.h
ide.h
idprom.h
intersil.h
io.h
io_mm.h Linux 4.2-rc8 2015-08-25 09:59:19 +02:00
io_no.h video/fbdev, asm/io.h: Remove ioremap_writethrough() 2015-06-07 15:28:57 +02:00
irq.h genirq: Remove irq argument from irq flow handlers 2015-09-16 15:47:51 +02:00
irqflags.h sched/preempt: Merge preempt_mask.h into preempt.h 2015-05-19 08:39:11 +02:00
Kbuild locking/mutex: Kill arch specific code 2016-10-25 11:31:51 +02:00
kexec.h
linkage.h m68k: Define asmlinkage_protect 2015-09-28 09:59:45 +02:00
m52xxacr.h
m53xxacr.h
m53xxsim.h
m54xxacr.h m68k: generalize io memory region setup for ColdFire ACR registers 2016-09-26 12:02:58 +10:00
m54xxgpt.h
m54xxpci.h
m54xxsim.h m68k: generalize io memory region setup for ColdFire ACR registers 2016-09-26 12:02:58 +10:00
m520xsim.h
m523xsim.h
m525xsim.h m68k: Assorted spelling fixes 2016-07-03 14:05:28 +02:00
m527xsim.h m68knommu: ColdFire 5271 only has a single FEC controller 2015-03-30 09:52:24 +10:00
m528xsim.h
m5206sim.h
m5272sim.h
m5307sim.h
m5407sim.h
m5441xsim.h m68k: generalize io memory region setup for ColdFire ACR registers 2016-09-26 12:02:58 +10:00
mac_asc.h
mac_baboon.h
mac_iop.h m68k: Fix misspellings in comments. 2016-02-29 09:51:44 +01:00
mac_oss.h
mac_psc.h m68k/mac: Kill psc_present 2015-11-23 09:58:30 +01:00
mac_via.h genirq: Remove irq argument from irq flow handlers 2015-09-16 15:47:51 +02:00
machdep.h
machines.h
machw.h
macintosh.h m68k/mac: Fix scsi_type for Mac LC and similar models 2015-01-11 11:38:46 +01:00
macints.h
math-emu.h
MC68EZ328.h m68k: Fix misspellings in comments. 2016-02-29 09:51:44 +01:00
MC68VZ328.h m68k: Fix misspellings in comments. 2016-02-29 09:51:44 +01:00
MC68328.h m68k: Fix misspellings in comments. 2016-02-29 09:51:44 +01:00
mc146818rtc.h
mcf8390.h
mcf_pgalloc.h tree wide: get rid of __GFP_REPEAT for order-0 allocations part I 2016-06-24 17:23:52 -07:00
mcf_pgtable.h m68k: drop _PAGE_FILE and pte_file()-related helpers 2015-02-10 14:30:32 -08:00
mcfclk.h
mcfdma.h
mcfgpio.h
mcfintc.h
mcfmmu.h m68k: move ColdFire _bootmem_alloc code 2016-09-26 12:02:58 +10:00
mcfpit.h
mcfqspi.h m68k: Remove FSF address 2015-03-15 10:23:30 +01:00
mcfsim.h
mcfslt.h
mcftimer.h m68k: Fix misspellings in comments. 2016-02-29 09:51:44 +01:00
mcfuart.h
mcfwdebug.h
mmu.h
mmu_context.h
mmzone.h
module.h
motorola_pgalloc.h tree wide: get rid of __GFP_REPEAT for order-0 allocations part I 2016-06-24 17:23:52 -07:00
motorola_pgtable.h m68k: drop _PAGE_FILE and pte_file()-related helpers 2015-02-10 14:30:32 -08:00
movs.h
mvme16xhw.h
mvme147hw.h
natfeat.h
nettel.h m68knommu: fix IO write size in nettel pin set 2016-09-26 12:02:58 +10:00
nubus.h
openprom.h
oplib.h
page.h m68k: Provide __phys_to_pfn() and __pfn_to_phys() 2016-01-10 13:56:40 +01:00
page_mm.h asm-generic: page.h: Remove useless get_user_page and free_user_page 2016-02-26 15:24:55 +01:00
page_no.h asm-generic: page.h: Remove useless get_user_page and free_user_page 2016-02-26 15:24:55 +01:00
page_offset.h
parport.h
pci.h PCI: Move pci_dma_* helpers to common code 2016-03-07 10:40:02 -06:00
pgalloc.h
pgtable.h
pgtable_mm.h mm: add missing __PAGETABLE_{PUD,PMD}_FOLDED defines 2015-02-28 09:57:51 -08:00
pgtable_no.h m68k: drop _PAGE_FILE and pte_file()-related helpers 2015-02-10 14:30:32 -08:00
processor.h locking/core: Introduce cpu_relax_yield() 2016-11-16 10:15:09 +01:00
ptrace.h
q40_master.h m68k: Assorted spelling fixes 2016-07-03 14:05:28 +02:00
q40ints.h
quicc_simple.h
raw_io.h
segment.h m68k: macro whitespace fixes 2015-01-13 15:24:03 +02:00
serial.h serial: Fix ASYNC_* => UPF_* flags misuse 2016-01-28 14:17:42 -08:00
setup.h
signal.h
smp.h
string.h
sun3-head.h
sun3_pgalloc.h tree wide: get rid of __GFP_REPEAT for order-0 allocations part I 2016-06-24 17:23:52 -07:00
sun3_pgtable.h m68k: drop _PAGE_FILE and pte_file()-related helpers 2015-02-10 14:30:32 -08:00
sun3ints.h
sun3mmu.h
sun3x.h
sun3xflop.h
sun3xprom.h
switch_to.h
thread_info.h m68k: Remove signal translation and exec_domain 2015-04-12 20:58:25 +02:00
timex.h
tlb.h
tlbflush.h
traps.h
uaccess.h
uaccess_mm.h m68k/uaccess: fix sparse errors 2015-01-13 15:23:28 +02:00
uaccess_no.h exceptions: detritus removal 2016-09-27 21:15:14 -04:00
ucontext.h
unaligned.h
unistd.h m68k: Wire up preadv2 and pwritev2 2016-04-07 11:44:44 +02:00
user.h
vga.h
virtconvert.h
zorro.h