Messages in this thread | | | Date | Wed, 12 Nov 2008 11:24:03 +0100 | From | Ingo Molnar <> | Subject | Re: [PATCH 2/2] ring-buffer: no preempt for sched_clock |
| |
* Steven Rostedt <rostedt@goodmis.org> wrote:
> Impact: disable preemption no calling sched_clock > > The ring_buffer_time_stamp still uses sched_clock as its counter. > But it is a bug to call it with preemption enabled. This requirement > should not be pushed to the ring_buffer_time_stamp callers, so > the ring_buffer_time_stamp needs to disable preemption when calling > sched_clock. > > Signed-off-by: Steven Rostedt <srostedt@redhat.com> > --- > kernel/trace/ring_buffer.c | 8 +++++++- > 1 files changed, 7 insertions(+), 1 deletions(-)
applied to tip/tracing/urgent, thanks Steve!
Ingo
| |