linux/arch/xtensa/kernel
Matthew Wilcox (Oracle) 49c40fb4b8 xtensa: remove vma linked list walks
Use the VMA iterator instead.  Since VMA can no longer be NULL in the
loop, then deal with out-of-memory outside the loop.  This means a
slightly longer run time in the failure case (-ENOMEM) - it will run to
the end of the VMAs before erroring instead of in the middle of the loop.

Link: https://lkml.kernel.org/r/20220906194824.2110408-37-Liam.Howlett@oracle.com
Signed-off-by: Matthew Wilcox (Oracle) <willy@infradead.org>
Signed-off-by: Liam R. Howlett <Liam.Howlett@Oracle.com>
Reviewed-by: Davidlohr Bueso <dave@stgolabs.net>
Tested-by: Yu Zhao <yuzhao@google.com>
Cc: Catalin Marinas <catalin.marinas@arm.com>
Cc: David Hildenbrand <david@redhat.com>
Cc: David Howells <dhowells@redhat.com>
Cc: SeongJae Park <sj@kernel.org>
Cc: Sven Schnelle <svens@linux.ibm.com>
Cc: Vlastimil Babka <vbabka@suse.cz>
Cc: Will Deacon <will@kernel.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
2022-09-26 19:46:20 -07:00
..
syscalls arch: syscalls: simplify uapi/kapi directory creation 2022-03-31 12:03:46 +09:00
.gitignore .gitignore: add SPDX License Identifier 2020-03-25 11:50:48 +01:00
align.S xtensa: use register window specific opcodes only when present 2021-10-18 22:19:35 -07:00
asm-offsets.c xtensa: improve call0 ABI probing 2022-05-17 03:35:43 -07:00
coprocessor.S xtensa: support coprocessors on SMP 2022-05-01 19:51:23 -07:00
entry.S RCU pull request for v5.20 (or whatever) 2022-08-02 19:12:45 -07:00
head.S xtensa: use register window specific opcodes only when present 2021-10-18 22:19:35 -07:00
hibernate.c xtensa: add hibernation support 2022-05-01 19:51:24 -07:00
hw_breakpoint.c xtensa: replace variant/core.h with asm/core.h 2019-05-06 17:48:55 -07:00
irq.c genirq: Return a const cpumask from irq_data_get_affinity_mask 2022-07-07 09:38:04 +01:00
jump_label.c xtensa: patch_text: Fixup last cpu should be master 2022-04-13 03:36:34 -07:00
Makefile xtensa: add hibernation support 2022-05-01 19:51:24 -07:00
mcount.S xtensa: implement call0 ABI support in assembly 2021-10-18 22:19:35 -07:00
module.c xtensa: clean up custom-controlled debug output 2017-12-16 22:37:08 -08:00
mxhead.S xtensa: add missing XCHAL_HAVE_WINDOWED check 2022-03-09 13:59:15 -08:00
pci-dma.c dma-mapping: merge <linux/dma-noncoherent.h> into <linux/dma-map-ops.h> 2020-10-06 07:07:06 +02:00
pci.c xtensa: fix warning comparing pointer to 0 2021-04-04 15:39:02 -07:00
perf_event.c xtensa: fix xtensa_pmu_setup prototype 2020-07-31 14:09:12 -07:00
platform.c xtensa: drop empty platform_* functions from platforms 2020-01-31 12:17:28 -08:00
process.c This set of changes updates init and user mode helper tasks to be 2022-06-03 16:03:05 -07:00
ptrace.c While looking at the ptrace problems with PREEMPT_RT and the problems 2022-06-03 16:13:25 -07:00
s32c1i_selftest.c xtensa: clean up exception handler prototypes 2022-05-01 19:51:22 -07:00
setup.c xtensa: make secondary reset vector support conditional 2022-03-09 16:59:18 -08:00
signal.c While looking at the ptrace problems with PREEMPT_RT and the problems 2022-06-03 16:13:25 -07:00
smp.c xtensa: support coprocessors on SMP 2022-05-01 19:51:23 -07:00
stacktrace.c arch: xtensa: Remove CONFIG_OPROFILE support 2021-01-29 10:05:51 +05:30
syscall.c xtensa: remove vma linked list walks 2022-09-26 19:46:20 -07:00
time.c xtensa: Fix refcount leak bug in time.c 2022-06-18 14:46:59 -07:00
traps.c xtensa: Return true/false (not 1/0) from bool function 2022-05-23 00:33:05 -07:00
vectors.S xtensa: rename PT_SIZE to PT_KERNEL_SIZE 2022-03-07 12:02:48 -08:00
vmlinux.lds.S xtensa: make secondary reset vector support conditional 2022-03-09 16:59:18 -08:00
xtensa_ksyms.c xtensa: don't link with libgcc 2022-03-09 14:03:23 -08:00