Commit 687062fd authored by Ard Biesheuvel's avatar Ard Biesheuvel Committed by Zheng Zengkai
Browse files

powerpc: smp: remove hack to obtain offset of task_struct::cpu

mainline inclusion
from mainline-v5.16-rc1
commit 336868af
category: bugfix
bugzilla: https://gitee.com/openeuler/kernel/issues/I4Q94A


CVE: NA

------------------------------

Instead of relying on awful hacks to obtain the offset of the cpu field
in struct task_struct, move it back into struct thread_info, which does
not create the same level of circular dependency hell when trying to
include the header file that defines it.

Signed-off-by: default avatarArd Biesheuvel <ardb@kernel.org>
Acked-by: default avatarMark Rutland <mark.rutland@arm.com>
Acked-by: default avatarMichael Ellerman <mpe@ellerman.id.au>
Signed-off-by: default avatarGuan Jing <guanjing6@huawei.com>

Conflicts:
	arch/powerpc/Makefile
Reviewed-by: default avatarChen Hui <judy.chenhui@huawei.com>
Signed-off-by: default avatarZheng Zengkai <zhengzengkai@huawei.com>
parent f1c5c72d
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment