File tree Expand file tree Collapse file tree 2 files changed +13
-13
lines changed Expand file tree Collapse file tree 2 files changed +13
-13
lines changed Original file line number Diff line number Diff line change 86
86
#define XFEATURE_MASK_FPSTATE (XFEATURE_MASK_USER_RESTORE | \
87
87
XFEATURE_MASK_SUPERVISOR_SUPPORTED)
88
88
89
- static inline u64 xfeatures_mask_supervisor (void )
90
- {
91
- return fpu_kernel_cfg .max_features & XFEATURE_MASK_SUPERVISOR_SUPPORTED ;
92
- }
93
-
94
- static inline u64 xfeatures_mask_independent (void )
95
- {
96
- if (!boot_cpu_has (X86_FEATURE_ARCH_LBR ))
97
- return XFEATURE_MASK_INDEPENDENT & ~XFEATURE_MASK_LBR ;
98
-
99
- return XFEATURE_MASK_INDEPENDENT ;
100
- }
101
-
102
89
extern u64 xstate_fx_sw_bytes [USER_XSTATE_FX_SW_WORDS ];
103
90
104
91
extern void __init update_regset_xstate_info (unsigned int size ,
Original file line number Diff line number Diff line change @@ -35,6 +35,19 @@ extern void fpu__init_system_xstate(unsigned int legacy_size);
35
35
36
36
extern void * get_xsave_addr (struct xregs_state * xsave , int xfeature_nr );
37
37
38
+ static inline u64 xfeatures_mask_supervisor (void )
39
+ {
40
+ return fpu_kernel_cfg .max_features & XFEATURE_MASK_SUPERVISOR_SUPPORTED ;
41
+ }
42
+
43
+ static inline u64 xfeatures_mask_independent (void )
44
+ {
45
+ if (!cpu_feature_enabled (X86_FEATURE_ARCH_LBR ))
46
+ return XFEATURE_MASK_INDEPENDENT & ~XFEATURE_MASK_LBR ;
47
+
48
+ return XFEATURE_MASK_INDEPENDENT ;
49
+ }
50
+
38
51
/* XSAVE/XRSTOR wrapper functions */
39
52
40
53
#ifdef CONFIG_X86_64
You can’t perform that action at this time.
0 commit comments