depmod: minimise basename() overhead
authorAlan Jenkins <alan-jenkins@tuffmail.co.uk>
Mon, 13 Oct 2008 05:38:30 +0000 (01:38 -0400)
committerJon Masters <jcm@jonmasters.org>
Mon, 13 Oct 2008 05:38:30 +0000 (01:38 -0400)
commitef92d7ac9b3e57d48ba29a8989eb4b1f1bd487ed
treed54237b5d3fdd20141a5837c0f084b5df5e9a156
parent2ce8456ee39dfd174e87896d76cb81d0fa151cc8
depmod: minimise basename() overhead

basename(mod->pathname) is called so often it should be pre-calculated
(discovered using callgrind).

Signed-off-by: Jon Masters <jcm@jonmasters.org>
depmod.c
depmod.h