diff options
author | Steven Rostedt (Red Hat) <rostedt@goodmis.org> | 2014-02-11 13:38:54 -0500 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2014-02-22 13:32:29 -0800 |
commit | fd60cc9e8dea0e93400fd9163d77f50b182322f3 (patch) | |
tree | c2bd3f4cc55472bc5ed30d6835c653b2ede1a911 /kernel/power/wakelock.c | |
parent | c12b12edd8e38e05cbe103e65d61ea71f0746421 (diff) |
ring-buffer: Fix first commit on sub-buffer having non-zero delta
commit d651aa1d68a2f0a7ee65697b04c6a92f8c0a12f2 upstream.
Each sub-buffer (buffer page) has a full 64 bit timestamp. The events on
that page use a 27 bit delta against that timestamp in order to save on
bits written to the ring buffer. If the time between events is larger than
what the 27 bits can hold, a "time extend" event is added to hold the
entire 64 bit timestamp again and the events after that hold a delta from
that timestamp.
As a "time extend" is always paired with an event, it is logical to just
allocate the event with the time extend, to make things a bit more efficient.
Unfortunately, when the pairing code was written, it removed the "delta = 0"
from the first commit on a page, causing the events on the page to be
slightly skewed.
Fixes: 69d1b839f7ee "ring-buffer: Bind time extend and data events together"
Signed-off-by: Steven Rostedt <rostedt@goodmis.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'kernel/power/wakelock.c')
0 files changed, 0 insertions, 0 deletions