diff options
author | Josh Triplett <josh@joshtriplett.org> | 2014-04-07 15:39:45 -0700 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2014-04-07 16:36:14 -0700 |
commit | 64b47e8fdb40a0d46e8cf458dd3e24f8afa073f6 (patch) | |
tree | 284e2335ba622406f3d3437c2abd416cc8979294 /kernel/sched/cpuacct.c | |
parent | 188a81409ff7de1c5aae947a96356ddd8ff4aaa3 (diff) | |
download | linux-64b47e8fdb40a0d46e8cf458dd3e24f8afa073f6.tar.bz2 |
lglock: map to spinlock when !CONFIG_SMP
When the system has only one CPU, lglock is effectively a spinlock; map
it directly to spinlock to eliminate the indirection and duplicate code.
In addition to removing overhead, this drops 1.6k of code with a
defconfig modified to have !CONFIG_SMP, and 1.1k with a minimal config.
Signed-off-by: Josh Triplett <josh@joshtriplett.org>
Cc: Rusty Russell <rusty@rustcorp.com.au>
Cc: Michal Marek <mmarek@suse.cz>
Cc: Thomas Gleixner <tglx@linutronix.de>
Cc: David Howells <dhowells@redhat.com>
Cc: "H. Peter Anvin" <hpa@zytor.com>
Cc: Nick Piggin <npiggin@kernel.dk>
Cc: Peter Zijlstra <a.p.zijlstra@chello.nl>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'kernel/sched/cpuacct.c')
0 files changed, 0 insertions, 0 deletions