diff options
| author | Fam Zheng <famz@redhat.com> | 2014-11-06 20:44:36 +0800 |
|---|---|---|
| committer | Moyster <oysterized@gmail.com> | 2016-08-26 20:20:27 +0200 |
| commit | 1110af1c48181a469f8bf292c85d840711c8376c (patch) | |
| tree | 298a0bd527deeb3b37e87cdbea49b3ac3442495b /include/linux/input-polldev.h | |
| parent | f224d4e650fc999922fb030dfa79b5518f3fb389 (diff) | |
aio: Skip timer for io_getevents if timeout=0
In this case, it is basically a polling. Let's not involve timer at all
because that would hurt performance for application event loops.
In an arbitrary test I've done, io_getevents syscall elapsed time
reduces from 50000+ nanoseconds to a few hundereds.
Signed-off-by: Fam Zheng <famz@redhat.com>
Signed-off-by: Benjamin LaHaise <bcrl@kvack.org>
Signed-off-by: Stefan Guendhoer <stefan@guendhoer.com>
Diffstat (limited to 'include/linux/input-polldev.h')
0 files changed, 0 insertions, 0 deletions
