]> Git Repo - linux.git/commit - kernel/spinlock.c
[PATCH] BUILD_LOCK_OPS: cleanup preempt_disable() usage
authorOleg Nesterov <[email protected]>
Thu, 23 Mar 2006 11:00:58 +0000 (03:00 -0800)
committerLinus Torvalds <[email protected]>
Thu, 23 Mar 2006 15:38:16 +0000 (07:38 -0800)
commitee25e96fcd78837c9f192aa655ce12a88bfd63d4
treee244e0903bd9583b5c0e6df5e46867427641e131
parenteb8782ef72758b8700963ef8b949f5c812e6d630
[PATCH] BUILD_LOCK_OPS: cleanup preempt_disable() usage

This patch changes the code from:

preempt_disable();
for (;;) {
...
preempt_disable();
}
to:
for (;;) {
preempt_disable();
...
}

which seems more clean to me and saves a couple of bytes for
each function.

Signed-off-by: Oleg Nesterov <[email protected]>
Acked-by: Ingo Molnar <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Signed-off-by: Linus Torvalds <[email protected]>
kernel/spinlock.c
This page took 0.052968 seconds and 4 git commands to generate.