diff options
author | Maximilian Luz <luzmaximilian@gmail.com> | 2020-12-21 19:39:53 +0100 |
---|---|---|
committer | Hans de Goede <hdegoede@redhat.com> | 2021-01-06 23:45:34 +0100 |
commit | 3a7081f610a0ff6385f38cf65a019383cd34bfdd (patch) | |
tree | b5e52adf3bc7fd6574d04ea68c49505b99eb743f /drivers/platform/surface/aggregator/ssh_packet_layer.c | |
parent | 44b84ee7b437dd7f869341b4b671963161a34a9f (diff) | |
download | lwn-3a7081f610a0ff6385f38cf65a019383cd34bfdd.tar.gz lwn-3a7081f610a0ff6385f38cf65a019383cd34bfdd.zip |
platform/surface: aggregator: Add event item allocation caching
Event items are used for completing Surface Aggregator EC events, i.e.
placing event command data and payload on a workqueue for later
processing to avoid doing said processing directly on the receiver
thread. This means that event items are allocated for each incoming
event, regardless of that event being transmitted via sequenced or
unsequenced packets.
On the Surface Book 3 and Surface Laptop 3, touchpad HID input events
(unsequenced), can constitute a larger amount of traffic, and therefore
allocation of event items. This warrants caching event items to reduce
memory fragmentation. The size of the cached objects is specifically
tuned to accommodate keyboard and touchpad input events and their
payloads on those devices. As a result, this effectively also covers
most other event types. In case of a larger event payload, event item
allocation will fall back to kzalloc().
Signed-off-by: Maximilian Luz <luzmaximilian@gmail.com>
Reviewed-by: Hans de Goede <hdegoede@redhat.com>
Link: https://lore.kernel.org/r/20201221183959.1186143-4-luzmaximilian@gmail.com
Signed-off-by: Hans de Goede <hdegoede@redhat.com>
Diffstat (limited to 'drivers/platform/surface/aggregator/ssh_packet_layer.c')
0 files changed, 0 insertions, 0 deletions