File tree Expand file tree Collapse file tree 2 files changed +10
-0
lines changed Expand file tree Collapse file tree 2 files changed +10
-0
lines changed Original file line number Diff line number Diff line change @@ -39,6 +39,11 @@ static inline bool security_ftr_enabled(u64 feature)
39
39
return !!(powerpc_security_features & feature );
40
40
}
41
41
42
+ #ifdef CONFIG_PPC_BOOK3S_64
43
+ enum stf_barrier_type stf_barrier_type_get (void );
44
+ #else
45
+ static inline enum stf_barrier_type stf_barrier_type_get (void ) { return STF_BARRIER_NONE ; }
46
+ #endif
42
47
43
48
// Features indicating support for Spectre/Meltdown mitigations
44
49
Original file line number Diff line number Diff line change @@ -263,6 +263,11 @@ static int __init handle_no_stf_barrier(char *p)
263
263
264
264
early_param ("no_stf_barrier" , handle_no_stf_barrier );
265
265
266
+ enum stf_barrier_type stf_barrier_type_get (void )
267
+ {
268
+ return stf_enabled_flush_types ;
269
+ }
270
+
266
271
/* This is the generic flag used by other architectures */
267
272
static int __init handle_ssbd (char * p )
268
273
{
You can’t perform that action at this time.
0 commit comments