diff options
author | Vadim Lobanov <vlobanov@speakeasy.net> | 2006-06-23 05:05:16 -0400 |
---|---|---|
committer | Linus Torvalds <torvalds@g5.osdl.org> | 2006-06-23 10:43:03 -0400 |
commit | 4a4b69f79ba7286794765a856349e380f984a6cb (patch) | |
tree | e437752eb3f53b4e732595815aa5d24ff4bcbaab /include/linux/if_shaper.h | |
parent | 2da132646358c853d5caf296d079aefc69358d46 (diff) |
[PATCH] Poll cleanups/microoptimizations
The "count" and "pt" variables are declared and modified by do_poll(), as
well as accessed and written indirectly in the do_pollfd() subroutine.
This patch pulls all handling of these variables into the do_poll()
function, thereby eliminating the odd use of indirection in do_pollfd().
This is done by pulling the "struct pollfd" traversal loop from do_pollfd()
into its only caller do_poll(). As an added bonus, the patch saves a few
clock cycles, and also adds comments to make the code easier to follow.
Signed-off-by: Vadim Lobanov <vlobanov@speakeasy.net>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
Diffstat (limited to 'include/linux/if_shaper.h')
0 files changed, 0 insertions, 0 deletions