diff options
author | Andi Kleen <ak@linux.intel.com> | 2012-05-08 13:32:24 +0930 |
---|---|---|
committer | Ziyan <jaraidaniel@gmail.com> | 2016-04-03 14:55:48 +0200 |
commit | 4c70fe4d3e4a8634c658edc15dfe5e42a5d618aa (patch) | |
tree | 402f25bea016ed8e3b04e9c16ce99c82f00fd48b /kernel/Makefile | |
parent | 08b4d03dc9a64ab1918356a64ae7cfc91f726f13 (diff) | |
download | kernel_samsung_tuna-4c70fe4d3e4a8634c658edc15dfe5e42a5d618aa.zip kernel_samsung_tuna-4c70fe4d3e4a8634c658edc15dfe5e42a5d618aa.tar.gz kernel_samsung_tuna-4c70fe4d3e4a8634c658edc15dfe5e42a5d618aa.tar.bz2 |
brlocks/lglocks: turn into functions
lglocks and brlocks are currently generated with some complicated macros
in lglock.h. But there's no reason to not just use common utility
functions and put all the data into a common data structure.
Since there are at least two users it makes sense to share this code in a
library. This is also easier maintainable than a macro forest.
This will also make it later possible to dynamically allocate lglocks and
also use them in modules (this would both still need some additional, but
now straightforward, code)
[akpm@linux-foundation.org: checkpatch fixes]
Signed-off-by: Andi Kleen <ak@linux.intel.com>
Cc: Al Viro <viro@zeniv.linux.org.uk>
Cc: Rusty Russell <rusty@rustcorp.com.au>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
(cherry picked from commit eea62f831b8030b0eeea8314eed73b6132d1de26)
Diffstat (limited to 'kernel/Makefile')
-rw-r--r-- | kernel/Makefile | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/kernel/Makefile b/kernel/Makefile index e4fd98b..21ce815 100644 --- a/kernel/Makefile +++ b/kernel/Makefile @@ -11,7 +11,7 @@ obj-y = sched.o fork.o exec_domain.o panic.o printk.o \ hrtimer.o rwsem.o nsproxy.o srcu.o semaphore.o \ notifier.o ksysfs.o pm_qos_params.o sched_clock.o cred.o \ async.o range.o jump_label.o -obj-y += groups.o +obj-y += groups.o lglock.o ifdef CONFIG_FUNCTION_TRACER # Do not trace debug files and internal ftrace files |