]> git.proxmox.com Git - mirror_ubuntu-kernels.git/commit
powerpc: 'current_set' is now a table of task_struct pointers
authorChristophe Leroy <christophe.leroy@c-s.fr>
Thu, 31 Jan 2019 10:09:02 +0000 (10:09 +0000)
committerMichael Ellerman <mpe@ellerman.id.au>
Sat, 23 Feb 2019 11:31:40 +0000 (22:31 +1100)
commit7c19c2e5f9c18e364a306253065474e5f6ad960c
treeb943cecc2da4ed328ef4dbd2fd6a74163a15f415
parenta7916a1de526162d73e894b6d3ebd895d4302078
powerpc: 'current_set' is now a table of task_struct pointers

The table of pointers 'current_set' has been used for retrieving
the stack and current. They used to be thread_info pointers as
they were pointing to the stack and current was taken from the
'task' field of the thread_info.

Now, the pointers of 'current_set' table are now both pointers
to task_struct and pointers to thread_info.

As they are used to get current, and the stack pointer is
retrieved from current's stack field, this patch changes
their type to task_struct, and renames secondary_ti to
secondary_current.

Reviewed-by: Nicholas Piggin <npiggin@gmail.com>
Signed-off-by: Christophe Leroy <christophe.leroy@c-s.fr>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
arch/powerpc/include/asm/asm-prototypes.h
arch/powerpc/kernel/head_32.S
arch/powerpc/kernel/head_44x.S
arch/powerpc/kernel/head_fsl_booke.S
arch/powerpc/kernel/smp.c