| .. | .. |
|---|
| 892 | 892 | setup_init_fpu_buf(); |
|---|
| 893 | 893 | setup_xstate_comp_offsets(); |
|---|
| 894 | 894 | setup_supervisor_only_offsets(); |
|---|
| 895 | + |
|---|
| 896 | + /* |
|---|
| 897 | + * CPU capabilities initialization runs before FPU init. So |
|---|
| 898 | + * X86_FEATURE_OSXSAVE is not set. Now that XSAVE is completely |
|---|
| 899 | + * functional, set the feature bit so depending code works. |
|---|
| 900 | + */ |
|---|
| 901 | + setup_force_cpu_cap(X86_FEATURE_OSXSAVE); |
|---|
| 902 | + |
|---|
| 895 | 903 | print_xstate_offset_size(); |
|---|
| 896 | 904 | |
|---|
| 897 | 905 | pr_info("x86/fpu: Enabled xstate features 0x%llx, context size is %d bytes, using '%s' format.\n", |
|---|