From: Jonathan Corbet Date: Sun, 18 May 2008 20:27:41 +0000 (-0600) Subject: Add cycle_kernel_lock() X-Git-Tag: v2.6.27-rc1~1103^2~88 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=0b2806768899dba5967bcd4a3b93eaed9a1dc4f3;p=pandora-kernel.git Add cycle_kernel_lock() A number of driver functions are so obviously trivial that they do not need the big kernel lock - at least not overtly. It turns out that the acquisition of the BKL in driver open() functions can perform a sort of poor-hacker's serialization function, delaying the open operation until the driver is certain to have completed its initialization. Add a simple cycle_kernel_lock() function for these cases to make it clear that there is no need to *hold* the BKL, just to be sure that we can acquire it. Signed-off-by: Jonathan Corbet --- Reading git-diff-tree failed