diff options
author | Heiko Carstens <hca@linux.ibm.com> | 2024-12-11 14:58:05 +0300 |
---|---|---|
committer | Alexander Gordeev <agordeev@linux.ibm.com> | 2024-12-15 18:19:03 +0300 |
commit | 5c9e37e5233ec3a6b4f2d160c697b8b28d13f134 (patch) | |
tree | d21416e8d6c3732d403bf556ae3699fb9d10b979 /scripts/gdb/linux/utils.py | |
parent | a53f5d247e24f4d3fb1218f23abdb5096488f4cb (diff) | |
download | linux-5c9e37e5233ec3a6b4f2d160c697b8b28d13f134.tar.xz |
s390/preempt: Optimize __preempt_count_dec_and_test()
Use __atomic_add_const_and_test() within __preempt_count_dec_and_test().
With this it is possible to decrease preempt_count by one and test if
need_resched is set with one instruction, if the compiler has support for
flag output operand constraints.
Reviewed-by: Juergen Christ <jchrist@linux.ibm.com>
Signed-off-by: Heiko Carstens <hca@linux.ibm.com>
Signed-off-by: Alexander Gordeev <agordeev@linux.ibm.com>
Diffstat (limited to 'scripts/gdb/linux/utils.py')
0 files changed, 0 insertions, 0 deletions