Skip to content

Commit

Permalink
build-kernel-profileo-only-when-requested-cleanups
Browse files Browse the repository at this point in the history
Cc: 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>
  • Loading branch information
Andrew Morton authored and Linus Torvalds committed Jul 25, 2008
1 parent b03f648 commit cebbd3f
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions include/linux/profile.h
Original file line number Diff line number Diff line change
Expand Up @@ -18,9 +18,11 @@ struct pt_regs;
struct notifier_block;

#if defined(CONFIG_PROFILING) && defined(CONFIG_PROC_FS)
void create_prof_cpu_mask(struct proc_dir_entry *);
void create_prof_cpu_mask(struct proc_dir_entry *de);
#else
#define create_prof_cpu_mask(x) do { (void)(x); } while (0)
static inline void create_prof_cpu_mask(struct proc_dir_entry *de)
{
}
#endif

enum profile_type {
Expand Down

0 comments on commit cebbd3f

Please sign in to comment.