commit | ef9aa0cec5fd89e3c5ea18c627fad75b1d77a0ac | [log] [tgz] |
---|---|---|
author | Ard Biesheuvel <ardb@kernel.org> | Tue Sep 07 13:32:04 2021 +0200 |
committer | Ard Biesheuvel <ardb@kernel.org> | Tue Sep 07 16:02:28 2021 +0200 |
tree | 20fc7ddfbefc433dfe63b5a6610c8339246517b5 | |
parent | 950b191a862ccb01ba6c0938f86a26db3a1ad21f [diff] |
ARM: smp: use a per-CPU variable to record the CPU number Currently, the CPU number is accessed via thread_info on the stack, but this will be problematic once we move it out of there, which is preferable for security/robustness reasons. So instead, when building for targets that implement the thread ID registers (and therefore don't rely on thread_info.cpu to access per-CPU variables), use a per-CPU variable for the CPU number. Signed-off-by: Ard Biesheuvel <ardb@kernel.org>