]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
arm64: entry: Rework arm64_preempt_schedule_irq()
authorJinjie Ruan <ruanjinjie@huawei.com>
Fri, 15 Aug 2025 03:06:28 +0000 (11:06 +0800)
committerWill Deacon <will@kernel.org>
Thu, 11 Sep 2025 14:55:34 +0000 (15:55 +0100)
commit77c1953946391e38c1e5120230f8df14f85219a7
tree566fd2318789aaff1294ffc64804d1a2f8a0b0e4
parentee776d68ba47cc8e2022f8c2218f1891a1244197
arm64: entry: Rework arm64_preempt_schedule_irq()

The generic entry code has the form:

| raw_irqentry_exit_cond_resched()
| {
|  if (!preempt_count()) {
|  ...
|  if (need_resched())
|  preempt_schedule_irq();
|  }
| }

In preparation for moving arm64 over to the generic entry code, align
the structure of the arm64 code with raw_irqentry_exit_cond_resched() from
the generic entry code.

Reviewed-by: Ada Couprie Diaz <ada.coupriediaz@arm.com>
Signed-off-by: Jinjie Ruan <ruanjinjie@huawei.com>
Acked-by: Catalin Marinas <catalin.marinas@arm.com>
Signed-off-by: Will Deacon <will@kernel.org>
arch/arm64/kernel/entry-common.c