summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorStephen Rothwell <sfr@canb.auug.org.au>2011-03-01 17:17:42 +1100
committerStephen Rothwell <sfr@canb.auug.org.au>2011-03-01 17:17:42 +1100
commitb3eab1d6a437c6332f90c039a75287cbef02ecf1 (patch)
treed13aeeee23bf7b57e8be4d049e31dc0ad52f0c81 /include
parent709e09ab4a8cb7569d1e248b39980fdb0dc8d4a5 (diff)
parenta3ba01b63468c925518da2da0ac3be11358f60cb (diff)
Merge remote-tracking branch 'bkl-config/config'
Conflicts: arch/powerpc/kernel/setup_64.c drivers/scsi/pm8001/pm8001_sas.h drivers/staging/Kconfig drivers/staging/stradis/Kconfig fs/nfsd/nfs4state.c include/linux/hardirq.h include/linux/smp_lock.h
Diffstat (limited to 'include')
-rw-r--r--include/linux/smp_lock.h15
1 files changed, 2 insertions, 13 deletions
diff --git a/include/linux/smp_lock.h b/include/linux/smp_lock.h
index 3a1988202731..c42c58cb065d 100644
--- a/include/linux/smp_lock.h
+++ b/include/linux/smp_lock.h
@@ -24,10 +24,12 @@ static inline int reacquire_kernel_lock(struct task_struct *task)
extern void __lockfunc
_lock_kernel(const char *func, const char *file, int line)
+__deprecated
__acquires(kernel_lock);
extern void __lockfunc
_unlock_kernel(const char *func, const char *file, int line)
+__deprecated
__releases(kernel_lock);
#define lock_kernel() do { \
@@ -38,24 +40,11 @@ __releases(kernel_lock);
_unlock_kernel(__func__, __FILE__, __LINE__); \
} while (0)
-/*
- * Various legacy drivers don't really need the BKL in a specific
- * function, but they *do* need to know that the BKL became available.
- * This function just avoids wrapping a bunch of lock/unlock pairs
- * around code which doesn't really need it.
- */
-static inline void cycle_kernel_lock(void)
-{
- lock_kernel();
- unlock_kernel();
-}
-
#else
#ifdef CONFIG_BKL /* provoke build bug if not set */
#define lock_kernel()
#define unlock_kernel()
-#define cycle_kernel_lock() do { } while(0)
#endif /* CONFIG_BKL */
#define release_kernel_lock(task) do { } while(0)