Commit ab83f45
sched: add WF_CURRENT_CPU and externise ttwu
Add WF_CURRENT_CPU wake flag that advices the scheduler to
move the wakee to the current CPU. This is useful for fast on-CPU
context switching use cases.
In addition, make ttwu external rather than static so that
the flag could be passed to it from outside of sched/core.c.
Signed-off-by: Peter Oskolkov <posk@google.com>
Signed-off-by: Andrei Vagin <avagin@google.com>
Acked-by: "Peter Zijlstra (Intel)" <peterz@infradead.org>
Link: https://lore.kernel.org/r/20230308073201.3102738-3-avagin@google.com
Signed-off-by: Kees Cook <keescook@chromium.org>1 parent 4943b66 commit ab83f45
3 files changed
Lines changed: 13 additions & 7 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
4193 | 4193 | | |
4194 | 4194 | | |
4195 | 4195 | | |
4196 | | - | |
4197 | | - | |
| 4196 | + | |
4198 | 4197 | | |
4199 | 4198 | | |
4200 | 4199 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
7741 | 7741 | | |
7742 | 7742 | | |
7743 | 7743 | | |
| 7744 | + | |
| 7745 | + | |
| 7746 | + | |
| 7747 | + | |
7744 | 7748 | | |
7745 | 7749 | | |
7746 | 7750 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2131 | 2131 | | |
2132 | 2132 | | |
2133 | 2133 | | |
2134 | | - | |
2135 | | - | |
2136 | | - | |
| 2134 | + | |
| 2135 | + | |
| 2136 | + | |
2137 | 2137 | | |
2138 | | - | |
2139 | | - | |
| 2138 | + | |
| 2139 | + | |
| 2140 | + | |
2140 | 2141 | | |
2141 | 2142 | | |
2142 | 2143 | | |
| |||
3229 | 3230 | | |
3230 | 3231 | | |
3231 | 3232 | | |
| 3233 | + | |
| 3234 | + | |
3232 | 3235 | | |
3233 | 3236 | | |
3234 | 3237 | | |
| |||
0 commit comments