diff options
author | Robert Richter <robert.richter@amd.com> | 2008-12-04 16:27:00 +0100 |
---|---|---|
committer | Robert Richter <robert.richter@amd.com> | 2008-12-10 14:20:16 +0100 |
commit | fbc9bf9f0ed4f0fbc47dcb5b1c26c28c93b60e33 (patch) | |
tree | 30cf2c1e7e2e7c0277c61758280edcbcd9689292 /drivers/oprofile/cpu_buffer.c | |
parent | oprofile: adding cpu_buffer_entries() (diff) | |
download | linux-fbc9bf9f0ed4f0fbc47dcb5b1c26c28c93b60e33.tar.xz linux-fbc9bf9f0ed4f0fbc47dcb5b1c26c28c93b60e33.zip |
oprofile: moving cpu_buffer_reset() to cpu_buffer.h
This is in preparation for changes in the cpu buffer implementation.
Signed-off-by: Robert Richter <robert.richter@amd.com>
Diffstat (limited to 'drivers/oprofile/cpu_buffer.c')
-rw-r--r-- | drivers/oprofile/cpu_buffer.c | 12 |
1 files changed, 0 insertions, 12 deletions
diff --git a/drivers/oprofile/cpu_buffer.c b/drivers/oprofile/cpu_buffer.c index d6f5de686363..5cf7efe38e67 100644 --- a/drivers/oprofile/cpu_buffer.c +++ b/drivers/oprofile/cpu_buffer.c @@ -124,18 +124,6 @@ void end_cpu_work(void) flush_scheduled_work(); } -/* Resets the cpu buffer to a sane state. */ -void cpu_buffer_reset(struct oprofile_cpu_buffer *cpu_buf) -{ - /* - * reset these to invalid values; the next sample collected - * will populate the buffer with proper values to initialize - * the buffer - */ - cpu_buf->last_is_kernel = -1; - cpu_buf->last_task = NULL; -} - /* compute number of available slots in cpu_buffer queue */ static unsigned long nr_available_slots(struct oprofile_cpu_buffer const *b) { |