# Re: \[PATCH 4/4\] input: evdev: only wake poll on EV\_SYN

- From: Dmitry Torokhov \<dmitry.torokhov@gmail.com\>
- Date: 2011-03-25 07:49:26 
- List: linux-input
- Page: https://ratatoskr.run/linux-input/2011/03/3694428
- Thread: https://ratatoskr.run/linux-input/2011/03/3693065/t.md

```text
On Tue, Mar 22, 2011 at 06:04:04PM -0700, Jeff Brown wrote:
> On SMP systems, it is possible for an evdev client blocked on poll()
> to wake up and read events from the evdev ring buffer at the same
> rate as they are enqueued.  This can result in high CPU usage,
> particularly for MT devices, because the client ends up reading
> events one at a time instead of reading complete packets.  This patch
> ensures that the client only wakes from poll() when a complete packet
> is ready to be read.

Doesn't this only help with very first packet after a pause in event
stream?

-- 
Dmitry
```
