From: Eliezer Tamir <redacted>
Date: Tue, 09 Jul 2013 13:09:21 +0300
Sorry, I forgot to commit before sending, so I sent the wrong version.
The previous version gets a warning in busy_loop_timeout().
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 <redacted>
Ok, looks good, applied.
Thanks!