]> git.karo-electronics.de Git - karo-tx-linux.git/commit
The current hyper-optimized functions are overkill if you simply want to
authorRusty Russell <rusty@rustcorp.com.au>
Wed, 3 Aug 2011 00:52:29 +0000 (10:52 +1000)
committerStephen Rothwell <sfr@canb.auug.org.au>
Wed, 3 Aug 2011 04:17:31 +0000 (14:17 +1000)
commit6a07e866841ebe1cbd42f971086c15115eb83e81
tree050bdcb8cb934bbde8d3c2dacf1a339db689941c
parentfe975d658c3b8a4f0ed4f2f3876974e2d1c860e2
The current hyper-optimized functions are overkill if you simply want to
allocate an id for a device.  Create versions which use an internal lock.

In followup patches, numerous drivers are converted to use this interface.

Thanks to Tejun for feedback.

Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
Acked-by: Tejun Heo <tj@kernel.org>
Acked-by: Jonathan Cameron <jic23@cam.ac.uk>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
include/linux/idr.h
lib/idr.c