Re: [PATCH] lglock: Map to spinlock when !CONFIG_SMP

2013-10-27 Thread Rusty Russell
Josh Triplett writes: > 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

[PATCH] lglock: Map to spinlock when !CONFIG_SMP

2013-10-25 Thread Josh Triplett
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: