sleep: use shared constant for freeze timeout

Let's keep all the timeout definitions in one place.
This commit is contained in:
Zbigniew Jędrzejewski-Szmek
2023-02-20 13:38:32 +01:00
parent 135e5a201a
commit f274f8bf25
2 changed files with 4 additions and 2 deletions
+3
View File
@@ -42,6 +42,9 @@
#define DEFAULT_START_LIMIT_INTERVAL (10*USEC_PER_SEC)
#define DEFAULT_START_LIMIT_BURST 5
/* Wait for 1.5 seconds at maximum for freeze operation */
#define FREEZE_TIMEOUT (1500 * USEC_PER_MSEC)
/* The default time after which exit-on-idle services exit. This
* should be kept lower than the watchdog timeout, because otherwise
* the watchdog pings will keep the loop busy. */