aboutsummaryrefslogtreecommitdiffstats
path: root/lib/notifier-error-inject.c
diff options
context:
space:
mode:
authorUros Bizjak <[email protected]>2022-08-22 17:39:56 +0000
committerAndrew Morton <[email protected]>2022-11-18 21:55:09 +0000
commit8baceabca656d5ef4494cdeb3b9b9fbb844ac613 (patch)
treeb60ac4475d4ad3d2b3ddf83a6d0adb199ca48a2e /lib/notifier-error-inject.c
parentselftests: cgroup: fix unsigned comparison with less than zero (diff)
downloadkernel-8baceabca656d5ef4494cdeb3b9b9fbb844ac613.tar.gz
kernel-8baceabca656d5ef4494cdeb3b9b9fbb844ac613.zip
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]>
Diffstat (limited to 'lib/notifier-error-inject.c')
0 files changed, 0 insertions, 0 deletions