diff options
author | Mark Rutland <[email protected]> | 2016-11-03 20:23:10 +0000 |
---|---|---|
committer | Catalin Marinas <[email protected]> | 2016-11-11 18:25:44 +0000 |
commit | 580efaa7ccfb8c0790dce4396434f0e5ac8d86ee (patch) | |
tree | 38dd7b2a74ffecb364a274494be39353a1ee9be3 /lib/timerqueue.c | |
parent | 623b476fc815464a0241ea7483da7b3580b7d8ac (diff) |
arm64: smp: prepare for smp_processor_id() rework
Subsequent patches will make smp_processor_id() use a percpu variable.
This will make smp_processor_id() dependent on the percpu offset, and
thus we cannot use smp_processor_id() to figure out what to initialise
the offset to.
Prepare for this by initialising the percpu offset based on
current::cpu, which will work regardless of how smp_processor_id() is
implemented. Also, make this relationship obvious by placing this code
together at the start of secondary_start_kernel().
Signed-off-by: Mark Rutland <[email protected]>
Tested-by: Laura Abbott <[email protected]>
Cc: Will Deacon <[email protected]>
Signed-off-by: Catalin Marinas <[email protected]>
Diffstat (limited to 'lib/timerqueue.c')
0 files changed, 0 insertions, 0 deletions