aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/oprofile/buffer_sync.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/oprofile/buffer_sync.c')
-rw-r--r--drivers/oprofile/buffer_sync.c6
1 files changed, 0 insertions, 6 deletions
diff --git a/drivers/oprofile/buffer_sync.c b/drivers/oprofile/buffer_sync.c
index d692fdc1a211..ac014cb27915 100644
--- a/drivers/oprofile/buffer_sync.c
+++ b/drivers/oprofile/buffer_sync.c
@@ -316,8 +316,6 @@ static void add_trace_begin(void)
316 add_event_entry(TRACE_BEGIN_CODE); 316 add_event_entry(TRACE_BEGIN_CODE);
317} 317}
318 318
319#ifdef CONFIG_OPROFILE_IBS
320
321static void add_data(struct op_entry *entry, struct mm_struct *mm) 319static void add_data(struct op_entry *entry, struct mm_struct *mm)
322{ 320{
323 unsigned long code, pc, val; 321 unsigned long code, pc, val;
@@ -355,8 +353,6 @@ static void add_data(struct op_entry *entry, struct mm_struct *mm)
355 add_event_entry(val); 353 add_event_entry(val);
356} 354}
357 355
358#endif
359
360static inline void add_sample_entry(unsigned long offset, unsigned long event) 356static inline void add_sample_entry(unsigned long offset, unsigned long event)
361{ 357{
362 add_event_entry(offset); 358 add_event_entry(offset);
@@ -544,10 +540,8 @@ void sync_buffer(int cpu)
544 cookie = get_exec_dcookie(mm); 540 cookie = get_exec_dcookie(mm);
545 add_user_ctx_switch(new, cookie); 541 add_user_ctx_switch(new, cookie);
546 } 542 }
547#ifdef CONFIG_OPROFILE_IBS
548 if (op_cpu_buffer_get_size(&entry)) 543 if (op_cpu_buffer_get_size(&entry))
549 add_data(&entry, mm); 544 add_data(&entry, mm);
550#endif
551 continue; 545 continue;
552 } 546 }
553 547