diff options
author | Steven Rostedt (Google) <rostedt@goodmis.org> | 2022-04-27 23:08:12 +0200 |
---|---|---|
committer | Steven Rostedt (Google) <rostedt@goodmis.org> | 2022-04-27 23:19:30 +0200 |
commit | f03f2abce4f3944b9576bc4ad28b75890e907d7c (patch) | |
tree | df1ca03a469862d425a0aa49b49db5c9a1711fe9 /samples | |
parent | ring-buffer: Have absolute time stamps handle large numbers (diff) | |
download | linux-f03f2abce4f3944b9576bc4ad28b75890e907d7c.tar.xz linux-f03f2abce4f3944b9576bc4ad28b75890e907d7c.zip |
ring-buffer: Have 32 bit time stamps use all 64 bits
When the new logic was made to handle deltas of events from interrupts
that interrupted other events, it required 64 bit local atomics.
Unfortunately, 64 bit local atomics are expensive on 32 bit architectures.
Thus, commit 10464b4aa605e ("ring-buffer: Add rb_time_t 64 bit operations
for speeding up 32 bit") created a type of seq lock timer for 32 bits.
It used two 32 bit local atomics, but required 2 bits from them each for
synchronization, making it only 60 bits.
Add a new "msb" field to hold the extra 4 bits that are cut off.
Link: https://lore.kernel.org/all/20220426175338.3807ca4f@gandalf.local.home/
Link: https://lkml.kernel.org/r/20220427170812.53cc7139@gandalf.local.home
Signed-off-by: Steven Rostedt (Google) <rostedt@goodmis.org>
Diffstat (limited to 'samples')
0 files changed, 0 insertions, 0 deletions