diff options
author | Stephen Rothwell <sfr@canb.auug.org.au> | 2010-12-30 12:21:37 +1100 |
---|---|---|
committer | Stephen Rothwell <sfr@canb.auug.org.au> | 2010-12-30 12:21:37 +1100 |
commit | ec14c05628bcd6e2cb15010fbc6b81c23febde49 (patch) | |
tree | 68eb150b55987c873f1bb0a6651d5a23d9891bba /include | |
parent | abd805800be0471ea9f0e9553fe525c03f52cb0e (diff) | |
parent | a3ba01b63468c925518da2da0ac3be11358f60cb (diff) |
Merge remote branch 'bkl-config/config'
Conflicts:
arch/powerpc/kernel/setup_64.c
drivers/staging/stradis/Kconfig
include/linux/hardirq.h
include/linux/smp_lock.h
Diffstat (limited to 'include')
-rw-r--r-- | include/linux/smp_lock.h | 15 |
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) |