diff options
author | Madhavan T. Venkataraman <[email protected]> | 2022-06-17 13:02:14 -0500 |
---|---|---|
committer | Will Deacon <[email protected]> | 2022-06-27 10:51:34 +0100 |
commit | a019d8a2cc82a95880677fb0ec16d1d4e8647df7 (patch) | |
tree | c3334d7e6c07e9a070e1c935ad709be0baddb231 /lib/mpi/mpi-cmp.c | |
parent | 446297b28a21244e4045026c4599d1b14a67e2ce (diff) |
arm64: Split unwind_init()
unwind_init() is currently a single function that initializes all of the
unwind state. Split it into the following functions and call them
appropriately:
- unwind_init_from_regs() - initialize from regs passed by caller.
- unwind_init_from_caller() - initialize for the current task
from the caller of arch_stack_walk().
- unwind_init_from_task() - initialize from the saved state of a
task other than the current task. In this case, the other
task must not be running.
This is done for two reasons:
- the different ways of initializing are clear
- specialized code can be added to each initializer in the future.
Signed-off-by: Madhavan T. Venkataraman <[email protected]>
Reviewed-by: Mark Brown <[email protected]>
Acked-by: Mark Rutland <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Will Deacon <[email protected]>
Diffstat (limited to 'lib/mpi/mpi-cmp.c')
0 files changed, 0 insertions, 0 deletions