]> git.proxmox.com Git - mirror_ubuntu-kernels.git/commit
pid: reduce code size by using a pointer to iterate over array
authorAndré Goddard Rosa <andre.goddard@gmail.com>
Wed, 16 Dec 2009 00:47:40 +0000 (16:47 -0800)
committerLinus Torvalds <torvalds@linux-foundation.org>
Wed, 16 Dec 2009 15:20:12 +0000 (07:20 -0800)
commit417e315247ebc199d357855bb08d2a5264400565
tree84383762d1abaebaa00928bbfc23851742d9cf9b
parent7be6d991bca63bbcdc5bc3b09789f367a3486537
pid: reduce code size by using a pointer to iterate over array

It decreases code size by 16 bytes on my gcc 4.4.1 on Core 2:
  text    data     bss     dec     hex filename
  4314    2216       8    6538    198a kernel/pid.o-BEFORE
  4298    2216       8    6522    197a kernel/pid.o-AFTER

Signed-off-by: André Goddard Rosa <andre.goddard@gmail.com>
Cc: Pekka Enberg <penberg@cs.helsinki.fi>
Cc: Oleg Nesterov <oleg@redhat.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
kernel/pid.c