diff options
Diffstat (limited to 'include/linux/sched.h')
-rw-r--r-- | include/linux/sched.h | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/include/linux/sched.h b/include/linux/sched.h index a51c13c2b1a0..d607db5fcc6a 100644 --- a/include/linux/sched.h +++ b/include/linux/sched.h | |||
@@ -1453,6 +1453,8 @@ static inline bool is_percpu_thread(void) | |||
1453 | #define PFA_SPREAD_SLAB 2 /* Spread some slab caches over cpuset */ | 1453 | #define PFA_SPREAD_SLAB 2 /* Spread some slab caches over cpuset */ |
1454 | #define PFA_SPEC_SSB_DISABLE 3 /* Speculative Store Bypass disabled */ | 1454 | #define PFA_SPEC_SSB_DISABLE 3 /* Speculative Store Bypass disabled */ |
1455 | #define PFA_SPEC_SSB_FORCE_DISABLE 4 /* Speculative Store Bypass force disabled*/ | 1455 | #define PFA_SPEC_SSB_FORCE_DISABLE 4 /* Speculative Store Bypass force disabled*/ |
1456 | #define PFA_SPEC_IB_DISABLE 5 /* Indirect branch speculation restricted */ | ||
1457 | #define PFA_SPEC_IB_FORCE_DISABLE 6 /* Indirect branch speculation permanently restricted */ | ||
1456 | 1458 | ||
1457 | #define TASK_PFA_TEST(name, func) \ | 1459 | #define TASK_PFA_TEST(name, func) \ |
1458 | static inline bool task_##func(struct task_struct *p) \ | 1460 | static inline bool task_##func(struct task_struct *p) \ |
@@ -1484,6 +1486,13 @@ TASK_PFA_CLEAR(SPEC_SSB_DISABLE, spec_ssb_disable) | |||
1484 | TASK_PFA_TEST(SPEC_SSB_FORCE_DISABLE, spec_ssb_force_disable) | 1486 | TASK_PFA_TEST(SPEC_SSB_FORCE_DISABLE, spec_ssb_force_disable) |
1485 | TASK_PFA_SET(SPEC_SSB_FORCE_DISABLE, spec_ssb_force_disable) | 1487 | TASK_PFA_SET(SPEC_SSB_FORCE_DISABLE, spec_ssb_force_disable) |
1486 | 1488 | ||
1489 | TASK_PFA_TEST(SPEC_IB_DISABLE, spec_ib_disable) | ||
1490 | TASK_PFA_SET(SPEC_IB_DISABLE, spec_ib_disable) | ||
1491 | TASK_PFA_CLEAR(SPEC_IB_DISABLE, spec_ib_disable) | ||
1492 | |||
1493 | TASK_PFA_TEST(SPEC_IB_FORCE_DISABLE, spec_ib_force_disable) | ||
1494 | TASK_PFA_SET(SPEC_IB_FORCE_DISABLE, spec_ib_force_disable) | ||
1495 | |||
1487 | static inline void | 1496 | static inline void |
1488 | current_restore_flags(unsigned long orig_flags, unsigned long flags) | 1497 | current_restore_flags(unsigned long orig_flags, unsigned long flags) |
1489 | { | 1498 | { |