diff options
author | Mark Rutland <[email protected]> | 2022-02-14 16:52:15 +0000 |
---|---|---|
committer | Peter Zijlstra <[email protected]> | 2022-02-19 11:11:08 +0100 |
commit | 8e12ab7c0e9f73ebfbcd6d37ece738f1825d58c8 (patch) | |
tree | 4ac32cc3648e53b92f7732f2f11b69a826c2d3b1 /lib/test_fortify/write_overflow-strlcpy-src.c | |
parent | 99cf983cc8bca4adb461b519664c939a565cfd4d (diff) |
arm64: entry: Centralize preemption decision
For historical reasons, the decision of whether or not to preempt is
spread across arm64_preempt_schedule_irq() and __el1_irq(), and it would
be clearer if this were all in one place.
Also, arm64_preempt_schedule_irq() calls lockdep_assert_irqs_disabled(),
but this is redundant, as we have a subsequent identical assertion in
__exit_to_kernel_mode(), and preempt_schedule_irq() will
BUG_ON(!irqs_disabled()) anyway.
This patch removes the redundant assertion and centralizes the
preemption decision making within arm64_preempt_schedule_irq().
Other than the slight change to assertion behaviour, there should be no
functional change as a result of this patch.
Signed-off-by: Mark Rutland <[email protected]>
Signed-off-by: Peter Zijlstra (Intel) <[email protected]>
Acked-by: Ard Biesheuvel <[email protected]>
Acked-by: Catalin Marinas <[email protected]>
Acked-by: Frederic Weisbecker <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Diffstat (limited to 'lib/test_fortify/write_overflow-strlcpy-src.c')
0 files changed, 0 insertions, 0 deletions