diff options
author | Linus Torvalds <torvalds@linux-foundation.org> | 2022-05-23 19:24:47 -0700 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2022-05-23 19:24:47 -0700 |
commit | 3e2cbc016b1d08463925db9b9bd3bd253f64b8b0 (patch) | |
tree | f1bac77db344cc74382151e8c2a7a74085b98219 /kernel | |
parent | 916654201008d5fb4d5f5dcf0b373d291da615ac (diff) | |
parent | 0180a1e823d7c41d9a1c19f38e6069b38fe60c87 (diff) |
Merge tag 'x86_splitlock_for_v5.19_rc1' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip
Pull x86 splitlock updates from Borislav Petkov:
- Add Raptor Lake to the set of CPU models which support splitlock
- Make life miserable for apps using split locks by slowing them down
considerably while the rest of the system remains responsive. The
hope is it will hurt more and people will really fix their misaligned
locks apps. As a result, free a TIF bit.
* tag 'x86_splitlock_for_v5.19_rc1' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip:
x86/split_lock: Enable the split lock feature on Raptor Lake
x86/split-lock: Remove unused TIF_SLD bit
x86/split_lock: Make life miserable for split lockers
Diffstat (limited to 'kernel')
-rw-r--r-- | kernel/fork.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/kernel/fork.c b/kernel/fork.c index 35a3beff140b..254ab63c1106 100644 --- a/kernel/fork.c +++ b/kernel/fork.c @@ -1046,6 +1046,11 @@ static struct task_struct *dup_task_struct(struct task_struct *orig, int node) #ifdef CONFIG_MEMCG tsk->active_memcg = NULL; #endif + +#ifdef CONFIG_CPU_SUP_INTEL + tsk->reported_split_lock = 0; +#endif + return tsk; free_stack: |