]> git.baikalelectronics.ru Git - kernel.git/commit
s390/spinlock: use the cpu number +1 as spinlock value
authorMartin Schwidefsky <schwidefsky@de.ibm.com>
Sun, 4 Dec 2016 13:36:04 +0000 (14:36 +0100)
committerMartin Schwidefsky <schwidefsky@de.ibm.com>
Thu, 28 Sep 2017 05:29:44 +0000 (07:29 +0200)
commitd0353b1e88b08e3b2b655f87b56107d4a3d09298
tree37dd4e46216cd29ebcecd564cfb9f29e58fcb801
parentb9d5960411218402162a97481da5016af6c5eb63
s390/spinlock: use the cpu number +1 as spinlock value

The queued spinlock code will come out simpler if the encoding of
the CPU that holds the spinlock is (cpu+1) instead of (~cpu).

Signed-off-by: Martin Schwidefsky <schwidefsky@de.ibm.com>
arch/s390/include/asm/spinlock.h
arch/s390/lib/spinlock.c