diff options
author | Michael Ellerman <mpe@ellerman.id.au> | 2024-02-15 00:14:05 +1100 |
---|---|---|
committer | Michael Ellerman <mpe@ellerman.id.au> | 2024-02-15 00:14:05 +1100 |
commit | 9832de654499f0bf797a3719c4d4c5bd401f18f5 (patch) | |
tree | ea776e1a12bfbed429aa09d9d0e9d5b8eed4ab9c /arch/powerpc/include/asm | |
parent | dca79603fbc592ec7ea8bd7ba274052d3984e882 (diff) |
powerpc/smp: Factor out assign_threads()
Factor out the for loop that assigns CPU numbers to threads of a core.
The function takes the next CPU number to use as input, and returns the
next available CPU number after the threads has been assigned.
This will allow a subsequent change to assign threads out of order.
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Link: https://msgid.link/20231229120107.2281153-4-mpe@ellerman.id.au
Diffstat (limited to 'arch/powerpc/include/asm')
0 files changed, 0 insertions, 0 deletions