diff options
author | Jinjie Ruan <ruanjinjie@huawei.com> | 2025-08-15 11:06:29 +0800 |
---|---|---|
committer | Will Deacon <will@kernel.org> | 2025-09-11 15:55:34 +0100 |
commit | c74c44c6ae207e196c4c31c4a243abb0811a5974 (patch) | |
tree | 9372efb3c4e9a697155ef846bf824f1b35161356 /lib/mpi/mpi-mod.c | |
parent | 77c1953946391e38c1e5120230f8df14f85219a7 (diff) |
arm64: entry: Use preempt_count() and need_resched() helper
The generic entry code uses preempt_count() and need_resched() helpers to
check if it should do preempt_schedule_irq(). Currently, arm64 use its own
check logic, that is "READ_ONCE(current_thread_info()->preempt_count == 0",
which is equivalent to "preempt_count() == 0 && need_resched()".
In preparation for moving arm64 over to the generic entry code, use
these helpers to replace arm64's own code and move it ahead.
No functional changes.
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>
Diffstat (limited to 'lib/mpi/mpi-mod.c')
0 files changed, 0 insertions, 0 deletions