aboutsummaryrefslogtreecommitdiff
path: root/security/tomoyo
diff options
context:
space:
mode:
authorGravatar Uros Bizjak <ubizjak@gmail.com> 2022-08-22 19:39:56 +0200
committerGravatar Andrew Morton <akpm@linux-foundation.org> 2022-11-18 13:55:09 -0800
commit8baceabca656d5ef4494cdeb3b9b9fbb844ac613 (patch)
treeb60ac4475d4ad3d2b3ddf83a6d0adb199ca48a2e /security/tomoyo
parentselftests: cgroup: fix unsigned comparison with less than zero (diff)
downloadlinux-8baceabca656d5ef4494cdeb3b9b9fbb844ac613.tar.gz
linux-8baceabca656d5ef4494cdeb3b9b9fbb844ac613.tar.bz2
linux-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/20220822173956.82525-1-ubizjak@gmail.com Signed-off-by: Uros Bizjak <ubizjak@gmail.com> Cc: Ingo Molnar <mingo@redhat.com> Cc: Peter Zijlstra <peterz@infradead.org> Cc: Juri Lelli <juri.lelli@redhat.com> Cc: Vincent Guittot <vincent.guittot@linaro.org> Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Diffstat (limited to 'security/tomoyo')
0 files changed, 0 insertions, 0 deletions