]> git.baikalelectronics.ru Git - kernel.git/commit
locking/rwsem: Rename 'activity' to 'count'
authorPeter Zijlstra <peterz@infradead.org>
Wed, 16 Jul 2014 12:54:55 +0000 (14:54 +0200)
committerIngo Molnar <mingo@kernel.org>
Wed, 16 Jul 2014 12:56:55 +0000 (14:56 +0200)
commitfa037a7a4efed8eb43c36a304444499187a88aac
tree6b9511aa222dcb670293f1db9042b85f3d69e111
parent42d7e6ed15c0b7df649167becf7e8ec9a035d840
locking/rwsem: Rename 'activity' to 'count'

There are two definitions of struct rw_semaphore, one in linux/rwsem.h
and one in linux/rwsem-spinlock.h.

For some reason they have different names for the initial field. This
makes it impossible to use C99 named initialization for
__RWSEM_INITIALIZER() -- or we have to duplicate that entire thing
along with the structure definitions.

The simpler patch is renaming the rwsem-spinlock variant to match the
regular rwsem.

This allows us to switch to C99 named initialization.

Signed-off-by: Peter Zijlstra <peterz@infradead.org>
Cc: Linus Torvalds <torvalds@linux-foundation.org>
Link: http://lkml.kernel.org/n/tip-bmrZolsbGmautmzrerog27io@git.kernel.org
Signed-off-by: Ingo Molnar <mingo@kernel.org>
include/linux/rwsem-spinlock.h
kernel/locking/rwsem-spinlock.c