diff options
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) | |||
124 | flush_scheduled_work(); | 124 | flush_scheduled_work(); |
125 | } | 125 | } |
126 | 126 | ||
127 | /* Resets the cpu buffer to a sane state. */ | ||
128 | void cpu_buffer_reset(struct oprofile_cpu_buffer *cpu_buf) | ||
129 | { | ||
130 | /* | ||
131 | * reset these to invalid values; the next sample collected | ||
132 | * will populate the buffer with proper values to initialize | ||
133 | * the buffer | ||
134 | */ | ||
135 | cpu_buf->last_is_kernel = -1; | ||
136 | cpu_buf->last_task = NULL; | ||
137 | } | ||
138 | |||
139 | /* compute number of available slots in cpu_buffer queue */ | 127 | /* compute number of available slots in cpu_buffer queue */ |
140 | static unsigned long nr_available_slots(struct oprofile_cpu_buffer const *b) | 128 | static unsigned long nr_available_slots(struct oprofile_cpu_buffer const *b) |
141 | { | 129 | { |