Commit 872aa4d
sched/fair: Use READ_ONCE() to read sg->asym_prefer_cpu
Subsequent commits add the support to dynamically update the sched_group
struct's "asym_prefer_cpu" member from a remote CPU. Use READ_ONCE()
when reading the "sg->asym_prefer_cpu" to ensure load balancer always
reads the latest value.
Signed-off-by: K Prateek Nayak <kprateek.nayak@amd.com>
Signed-off-by: Peter Zijlstra (Intel) <peterz@infradead.org>
Link: https://lore.kernel.org/r/20250409053446.23367-2-kprateek.nayak@amd.com1 parent 6432e16 commit 872aa4d
1 file changed
Lines changed: 3 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
10251 | 10251 | | |
10252 | 10252 | | |
10253 | 10253 | | |
10254 | | - | |
| 10254 | + | |
10255 | 10255 | | |
10256 | 10256 | | |
10257 | 10257 | | |
| |||
10488 | 10488 | | |
10489 | 10489 | | |
10490 | 10490 | | |
10491 | | - | |
| 10491 | + | |
| 10492 | + | |
10492 | 10493 | | |
10493 | 10494 | | |
10494 | 10495 | | |
| |||
0 commit comments