diff options
Diffstat (limited to 'kernel/profile.c')
-rw-r--r-- | kernel/profile.c | 4 |
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; | |||
44 | EXPORT_SYMBOL_GPL(prof_on); | 44 | EXPORT_SYMBOL_GPL(prof_on); |
45 | 45 | ||
46 | static cpumask_var_t prof_cpu_mask; | 46 | static cpumask_var_t prof_cpu_mask; |
47 | #ifdef CONFIG_SMP | 47 | #if defined(CONFIG_SMP) && defined(CONFIG_PROC_FS) |
48 | static DEFINE_PER_CPU(struct profile_hit *[2], cpu_profile_hits); | 48 | static DEFINE_PER_CPU(struct profile_hit *[2], cpu_profile_hits); |
49 | static DEFINE_PER_CPU(int, cpu_profile_flip); | 49 | static DEFINE_PER_CPU(int, cpu_profile_flip); |
50 | static DEFINE_MUTEX(profile_flip_mutex); | 50 | static DEFINE_MUTEX(profile_flip_mutex); |
@@ -202,7 +202,7 @@ int profile_event_unregister(enum profile_type type, struct notifier_block *n) | |||
202 | } | 202 | } |
203 | EXPORT_SYMBOL_GPL(profile_event_unregister); | 203 | EXPORT_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 |