]> www.infradead.org Git - users/jedix/linux-maple.git/commit
sched/fair: Use READ_ONCE() to read sg->asym_prefer_cpu
authorK Prateek Nayak <kprateek.nayak@amd.com>
Wed, 9 Apr 2025 05:34:43 +0000 (05:34 +0000)
committerPeter Zijlstra <peterz@infradead.org>
Wed, 16 Apr 2025 19:09:11 +0000 (21:09 +0200)
commit872aa4de18889be63317a8c0f2de71a3a01e487c
treeca6c926d79b5af7132370e7e7ccc779500017109
parent6432e163ba1b7d80b5876792ce53e511f041ab91
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.com
kernel/sched/fair.c