diff options
author | Jere Leppänen <jere.leppanen@nokia.com> | 2023-03-14 11:24:38 +0200 |
---|---|---|
committer | Matias Elo <matias.elo@nokia.com> | 2024-02-01 16:35:10 +0200 |
commit | 5cc40ab1c038831d9d9fafa97a6b6222d8141432 (patch) | |
tree | 6a03c093151eeba489f77590adad8f55c6373468 /config/odp-linux-generic.conf | |
parent | 22c7067de77ff0ad39c01cd2525547eb3a9e6772 (diff) |
linux-gen: sched: improve timer behavior when power saving sleep is enabled
When using inline timers and power saving sleep, limit sleep duration
according to the next timeout.
Signed-off-by: Jere Leppänen <jere.leppanen@nokia.com>
Reviewed-by: Petri Savolainen <petri.savolainen@nokia.com>
Diffstat (limited to 'config/odp-linux-generic.conf')
-rw-r--r-- | config/odp-linux-generic.conf | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/config/odp-linux-generic.conf b/config/odp-linux-generic.conf index 63ac31fe2..2d27752b2 100644 --- a/config/odp-linux-generic.conf +++ b/config/odp-linux-generic.conf @@ -240,8 +240,9 @@ sched_basic: { # When waiting for events during a schedule call, save power by # sleeping in the poll loop. First, run schedule loop normally for # poll_time_nsec nanoseconds. If there are no events to schedule in that - # time, continue polling, but sleep for sleep_time_nsec nanoseconds on - # each round. + # time, continue polling, but sleep on each round. Sleep time is + # sleep_time_nsec nanoseconds, or the time to the next timer expiration, + # whichever is smaller. Timer pools are scanned just before sleep. # # During sleep, the thread is not polling for packet input or timers. # Each thread measures time and sleeps independently of other threads. @@ -257,7 +258,7 @@ sched_basic: { # Time in nsec to sleep # - # Actual sleep time may vary. + # Must be less than one second. Actual sleep time may vary. sleep_time_nsec = 0 } } |