summaryrefslogtreecommitdiffstats
path: root/kernel/profile.c
diff options
context:
space:
mode:
Diffstat (limited to 'kernel/profile.c')
-rw-r--r--kernel/profile.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/kernel/profile.c b/kernel/profile.c
index 51369697466e..c2199e9901c9 100644
--- a/kernel/profile.c
+++ b/kernel/profile.c
@@ -44,7 +44,7 @@ int prof_on __read_mostly;
44EXPORT_SYMBOL_GPL(prof_on); 44EXPORT_SYMBOL_GPL(prof_on);
45 45
46static cpumask_var_t prof_cpu_mask; 46static cpumask_var_t prof_cpu_mask;
47#ifdef CONFIG_SMP 47#if defined(CONFIG_SMP) && defined(CONFIG_PROC_FS)
48static DEFINE_PER_CPU(struct profile_hit *[2], cpu_profile_hits); 48static DEFINE_PER_CPU(struct profile_hit *[2], cpu_profile_hits);
49static DEFINE_PER_CPU(int, cpu_profile_flip); 49static DEFINE_PER_CPU(int, cpu_profile_flip);
50static DEFINE_MUTEX(profile_flip_mutex); 50static DEFINE_MUTEX(profile_flip_mutex);
@@ -202,7 +202,7 @@ int profile_event_unregister(enum profile_type type, struct notifier_block *n)
202} 202}
203EXPORT_SYMBOL_GPL(profile_event_unregister); 203EXPORT_SYMBOL_GPL(profile_event_unregister);
204 204
205#ifdef CONFIG_SMP 205#if defined(CONFIG_SMP) && defined(CONFIG_PROC_FS)
206/* 206/*
207 * Each cpu has a pair of open-addressed hashtables for pending 207 * Each cpu has a pair of open-addressed hashtables for pending
208 * profile hits. read_profile() IPI's all cpus to request them 208 * profile hits. read_profile() IPI's all cpus to request them