hulk inclusion category: bugfix bugzilla: https://gitee.com/openeuler/intel-kernel/issues/I5RQLJ
--------------------------------
5a2451f10550 ("x86/fpu: Avoid kabi change caused by struct fpu") will lead to performance degradation of libmicro pthread_create testcase. Assuming that no 3rd party driver will reach into struct fpu, replace kabi fix macro from KABI_DEPRECATE to KABI_BROKEN_REMOVE for element "union fpregs_state state" of struct fpu.
Signed-off-by: Zheng Zengkai zhengzengkai@huawei.com --- arch/x86/include/asm/fpu/types.h | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-)
diff --git a/arch/x86/include/asm/fpu/types.h b/arch/x86/include/asm/fpu/types.h index 1ab041f14482..44ffbf971f4f 100644 --- a/arch/x86/include/asm/fpu/types.h +++ b/arch/x86/include/asm/fpu/types.h @@ -494,8 +494,11 @@ struct fpu { * context switch and when the kernel uses the FPU. The registers * are restored from this storage on return to user space if they * are not longer containing the tasks FPU register state. + * + * For kabi fix: + * Assuming that no 3rd party driver will reach into struct fpu */ - KABI_DEPRECATE(union fpregs_state, state) + KABI_BROKEN_REMOVE(union fpregs_state state) KABI_EXTEND(struct fpstate __fpstate) /* * WARNING: '__fpstate' is dynamically-sized. Do not put