Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 128200
b: refs/heads/master
c: 3001577
h: refs/heads/master
v: v3
  • Loading branch information
Robert Richter committed Dec 29, 2008
1 parent 4bf0c1e commit 09c964f
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 11 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 83bd9243956f30d91851b272988a237999b35b10
refs/heads/master: 300157768f050dabc73a99d958b504282088a132
20 changes: 10 additions & 10 deletions trunk/drivers/oprofile/cpu_buffer.c
Original file line number Diff line number Diff line change
Expand Up @@ -54,16 +54,6 @@ static void wq_sync_buffer(struct work_struct *work);
#define DEFAULT_TIMER_EXPIRE (HZ / 10)
static int work_enabled;

void free_cpu_buffers(void)
{
if (op_ring_buffer_read)
ring_buffer_free(op_ring_buffer_read);
op_ring_buffer_read = NULL;
if (op_ring_buffer_write)
ring_buffer_free(op_ring_buffer_write);
op_ring_buffer_write = NULL;
}

unsigned long oprofile_get_cpu_buffer_size(void)
{
return oprofile_cpu_buffer_size;
Expand All @@ -77,6 +67,16 @@ void oprofile_cpu_buffer_inc_smpl_lost(void)
cpu_buf->sample_lost_overflow++;
}

void free_cpu_buffers(void)
{
if (op_ring_buffer_read)
ring_buffer_free(op_ring_buffer_read);
op_ring_buffer_read = NULL;
if (op_ring_buffer_write)
ring_buffer_free(op_ring_buffer_write);
op_ring_buffer_write = NULL;
}

int alloc_cpu_buffers(void)
{
int i;
Expand Down

0 comments on commit 09c964f

Please sign in to comment.