Files
linux/kernel
Uros Bizjak 8baceabca6 sched/fair: use try_cmpxchg in task_numa_work
Use try_cmpxchg instead of cmpxchg (*ptr, old, new) == old in
task_numa_work.  x86 CMPXCHG instruction returns success in ZF flag, so
this change saves a compare after cmpxchg (and related move instruction in
front of cmpxchg).

No functional change intended.

Link: https://lkml.kernel.org/r/[email protected]
Signed-off-by: Uros Bizjak <[email protected]>
Cc: Ingo Molnar <[email protected]>
Cc: Peter Zijlstra <[email protected]>
Cc: Juri Lelli <[email protected]>
Cc: Vincent Guittot <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
2022-11-18 13:55:09 -08:00
..
2022-09-28 09:02:20 +02:00
2022-09-26 19:46:18 -07:00
…
2022-08-29 19:47:03 -04:00
2022-09-26 10:13:13 -07:00
…
…
…
…
…
…
…
…
…
2022-06-29 13:07:16 +02:00
…
…
…
…
…
…
…
…
…
…
…
…