Commit b60bbfca authored by Zheng Zengkai's avatar Zheng Zengkai
Browse files

x86/fpu: KABI_BROKEN_REMOVE "union fpregs_state state" from struct fpu

hulk inclusion
category: bugfix
bugzilla: https://gitee.com/openeuler/intel-kernel/issues/I5RQLJ



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

5a2451f1 ("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: default avatarZheng Zengkai <zhengzengkai@huawei.com>
parent aacf4228
Loading
Loading
Loading
Loading
+4 −1
Original line number Diff line number Diff line
@@ -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