projects
/
platform
/
kernel
/
linux-rpi.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
Merge tag 'mfd-fixes-6.6' of git://git.kernel.org/pub/scm/linux/kernel/git/lee/mfd
[platform/kernel/linux-rpi.git]
/
scripts
/
atomic
/
fallbacks
/
inc_unless_negative
1
cat <<EOF
2
${int} c = raw_${atomic}_read(v);
3
4
do {
5
if (unlikely(c < 0))
6
return false;
7
} while (!raw_${atomic}_try_cmpxchg(v, &c, c + 1));
8
9
return true;
10
EOF