File tree Expand file tree Collapse file tree 1 file changed +2
-4
lines changed Expand file tree Collapse file tree 1 file changed +2
-4
lines changed Original file line number Diff line number Diff line change @@ -437,8 +437,7 @@ static void cond_mitigation(struct task_struct *next)
437
437
* both have the IBPB bit set.
438
438
*/
439
439
if (next_mm != prev_mm &&
440
- (next_mm | prev_mm ) & LAST_USER_MM_IBPB &&
441
- cpu_feature_enabled (X86_FEATURE_USE_IBPB ))
440
+ (next_mm | prev_mm ) & LAST_USER_MM_IBPB )
442
441
indirect_branch_prediction_barrier ();
443
442
}
444
443
@@ -448,8 +447,7 @@ static void cond_mitigation(struct task_struct *next)
448
447
* different context than the user space task which ran
449
448
* last on this CPU.
450
449
*/
451
- if ((prev_mm & ~LAST_USER_MM_SPEC_MASK ) != (unsigned long )next -> mm &&
452
- cpu_feature_enabled (X86_FEATURE_USE_IBPB ))
450
+ if ((prev_mm & ~LAST_USER_MM_SPEC_MASK ) != (unsigned long )next -> mm )
453
451
indirect_branch_prediction_barrier ();
454
452
}
455
453
You can’t perform that action at this time.
0 commit comments