add MAX_IDLE_COUNTER and DESKTOP_TIMER_INERTVAL

This commit is contained in:
Vincent Wei
2020-02-22 15:53:50 +08:00
parent 1192bba572
commit 41c709b1c8
+6 -4
View File
@@ -181,10 +181,12 @@ enum {
/* misc constants and utilities */
/* Number of timers. */
#define DEF_NR_TIMERS NR_BITS_DWORD
#define USEC_1S 1000000
#define USEC_10MS 10000
#define USEC_TIMEOUT 300000
#define DEF_NR_TIMERS NR_BITS_DWORD
#define USEC_1S 1000000
#define USEC_10MS 10000
#define USEC_TIMEOUT 300000 // 300ms
#define MAX_IDLE_COUNTER (USEC_TIMEOUT/USEC_10MS)
#define DESKTOP_TIMER_INERTVAL 50 // every 50 ticks, 500ms
/* round n to multiple of m */
#define ROUND_TO_MULTIPLE(n, m) (((n) + (((m) - 1))) & ~((m) - 1))