net/fs: change busy poll time accounting
authorEliezer Tamir <eliezer.tamir@linux.intel.com>
Tue, 9 Jul 2013 10:09:21 +0000 (13:09 +0300)
committerDavid S. Miller <davem@davemloft.net>
Tue, 9 Jul 2013 19:33:04 +0000 (12:33 -0700)
commit76b1e9b9813e412bde7446525f6c299803713545
treef062c481d287f1c3b186a9ede8d61abffcf06f8f
parentcbf55001b2ddb814329735641be5d29b08c82b08
net/fs: change busy poll time accounting

Suggested by Linus:
Changed time accounting for busy-poll:
- Make it microsecond based.
- Use unsigned longs.
- Revert back to use time_after instead of time_in_range.
Reorder poll/select busy loop conditions:
- Clear busy_flag after one time we can't busy-poll.
- Only init busy_end if we actually are going to busy-poll.
Added one more missing need_resched() test.

Signed-off-by: Eliezer Tamir <eliezer.tamir@linux.intel.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
fs/select.c
include/net/ll_poll.h