linux/drivers/staging/android
Peter Zijlstra 2c935bc572 locking/atomic, kref: Add kref_read()
Since we need to change the implementation, stop exposing internals.

Provide kref_read() to read the current reference count; typically
used for debug messages.

Kills two anti-patterns:

	atomic_read(&kref->refcount)
	kref->refcount.counter

Signed-off-by: Peter Zijlstra (Intel) <peterz@infradead.org>
Cc: Andrew Morton <akpm@linux-foundation.org>
Cc: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Cc: Linus Torvalds <torvalds@linux-foundation.org>
Cc: Paul E. McKenney <paulmck@linux.vnet.ibm.com>
Cc: Peter Zijlstra <peterz@infradead.org>
Cc: Thomas Gleixner <tglx@linutronix.de>
Cc: linux-kernel@vger.kernel.org
Signed-off-by: Ingo Molnar <mingo@kernel.org>
2017-01-14 11:37:18 +01:00
..
ion locking/atomic, kref: Add kref_read() 2017-01-14 11:37:18 +01:00
uapi staging: android: ion_test: remove extra line per checkpatch.pl 2016-10-16 10:24:50 +02:00
ashmem.c staging: android: ashmem: clean up range inline functions 2016-12-06 10:18:07 +01:00
ashmem.h
Kconfig dma-buf/sw_sync: de-stage SW_SYNC 2016-08-15 16:41:46 +02:00
lowmemorykiller.c Staging: android: fixed permissions style issue 2016-09-27 13:08:05 +02:00
Makefile dma-buf/sw_sync: de-stage SW_SYNC 2016-08-15 16:41:46 +02:00
TODO staging/android: remove Sync Framework tasks from TODO 2016-12-07 11:41:16 +01:00