linux/Documentation
Heiner Kallweit c6af13d334 timer: add fsleep for flexible sleeping
Sleeping for a certain amount of time requires use of different
functions, depending on the time period.
Documentation/timers/timers-howto.rst explains when to use which
function, and also checkpatch checks for some potentially
problematic cases.

So let's create a helper that automatically chooses the appropriate
sleep function -> fsleep(), for flexible sleeping

If the delay is a constant, then the compiler should be able to ensure
that the new helper doesn't create overhead. If the delay is not
constant, then the new helper can save some code.

Signed-off-by: Heiner Kallweit <hkallweit1@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
2020-05-06 17:03:34 -07:00
..
2020-04-20 12:43:24 -07:00
2020-02-19 02:42:21 -07:00
2020-04-28 13:30:44 -07:00
2020-03-19 10:40:27 +10:00
2019-12-11 09:12:38 +01:00
2020-03-30 13:42:05 -07:00
2020-03-19 07:41:04 +01:00
2020-04-03 14:25:02 -07:00
2020-04-05 11:12:59 -07:00
2020-04-02 17:03:53 -07:00
2019-07-17 06:57:52 -03:00
2020-04-05 10:36:18 -07:00
2020-03-30 13:42:05 -07:00
2020-03-15 11:34:48 +02:00
2020-04-02 15:13:15 -07:00
2019-12-30 11:58:02 -07:00
2019-09-27 11:17:38 -07:00
2020-04-03 13:22:40 -07:00
2020-03-31 16:03:39 -07:00