]> git.baikalelectronics.ru Git - kernel.git/commit
build kernel/profile.o only when requested
authorAdrian Bunk <bunk@kernel.org>
Fri, 25 Jul 2008 08:45:35 +0000 (01:45 -0700)
committerLinus Torvalds <torvalds@linux-foundation.org>
Fri, 25 Jul 2008 17:53:27 +0000 (10:53 -0700)
commit066dd82944ccf95adda48f6351ee2b55b6e8ec20
tree6329fc91e860f2949d737c611aa846eb2d653103
parent58a3257ab73cee6c199bf70e3a349bab60ed6948
build kernel/profile.o only when requested

Build kernel/profile.o only if CONFIG_PROFILING is enabled.

This makes CONFIG_PROFILING=n kernels smaller.

As a bonus, some profile_tick() calls and one branch from schedule() are
now eliminated with CONFIG_PROFILING=n (but I doubt these are
measurable effects).

This patch changes the effects of CONFIG_PROFILING=n, but I don't think
having more than two choices would be the better choice.

This patch also adds the name of the first parameter to the prototypes
of profile_{hits,tick}() since I anyway had to add them for the dummy
functions.

Signed-off-by: Adrian Bunk <bunk@kernel.org>
Cc: Ingo Molnar <mingo@elte.hu>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
include/linux/profile.h
kernel/Makefile
kernel/profile.c