aboutsummaryrefslogtreecommitdiffstats
path: root/tools/perf/scripts/python/sctop.py
diff options
context:
space:
mode:
authorNick Crews <[email protected]>2019-06-24 19:00:42 +0000
committerEnric Balletbo i Serra <[email protected]>2019-06-25 10:33:05 +0000
commit1d333ef3d599026897fb11b4f89f9f8f30838139 (patch)
tree40e433dd2ed786ef9e5919c733ede0e625c9ed2c /tools/perf/scripts/python/sctop.py
parentplatform/chrome: cros_ec_lpc_mec: Fix kernel-doc comment first line (diff)
downloadkernel-1d333ef3d599026897fb11b4f89f9f8f30838139.tar.gz
kernel-1d333ef3d599026897fb11b4f89f9f8f30838139.zip
platform/chrome: wilco_ec: Add circular buffer as event queue
The current implementation of the event queue both wastes space using a doubly linked list and isn't super obvious in how it behaves. This converts the queue to an actual circular buffer. The size of the queue is a tunable module parameter. This also fixes a few other things: - A memory leak that occurred when the ACPI device was removed, but the events were not freed from the queue. - Now kfree() the oldest event from outside all locks. - Add newline to logging messages. - Add helper macros to calculate size of events. - Remove unneeded lock around a check for dev_data->exist in hangup_device(). - Remove an unneeded null event pointer check in enqueue_events(). - Correct some comments. Signed-off-by: Nick Crews <[email protected]> Signed-off-by: Enric Balletbo i Serra <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/sctop.py')
0 files changed, 0 insertions, 0 deletions