diff options
author | Mark Rutland <[email protected]> | 2021-05-20 12:50:30 +0100 |
---|---|---|
committer | Will Deacon <[email protected]> | 2021-05-26 22:45:46 +0100 |
commit | 8e334d729bc4787f728e9e5abc91649f131124ff (patch) | |
tree | 8cb256485a8ddba4bf71c92035b0d56ace971b37 /tools/perf/scripts/python/export-to-sqlite.py | |
parent | 3305e7f74a14cdb19e61af4febb098ad62820d71 (diff) |
arm64: smp: unify task and sp setup
Once we enable the MMU, we have to initialize:
* SP_EL0 to point at the active task
* SP to point at the active task's stack
* SCS_SP to point at the active task's shadow stack
For all tasks (including init_task), this information can be derived
from the task's task_struct.
Let's unify __primary_switched and __secondary_switched to consistently
acquire this information from the relevant task_struct. At the same
time, let's fold this together with initializing a task's final frame.
There should be no functional change as a result of this patch.
Signed-off-by: Mark Rutland <[email protected]>
Cc: Ard Biesheuvel <[email protected]>
Cc: Catalin Marinas <[email protected]>
Cc: James Morse <[email protected]>
Cc: Marc Zyngier <[email protected]>
Cc: Suzuki Poulose <[email protected]>
Cc: Will Deacon <[email protected]>
Reviewed-by: Ard Biesheuvel <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Will Deacon <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/export-to-sqlite.py')
0 files changed, 0 insertions, 0 deletions