sched: always return non-zero timeout ID

Timeout ID of zero can be now safely used to indicate that the timer is
not running. Remove the extra timer_running variables that were
necessary to track that.
This commit is contained in:
Miroslav Lichvar
2015-11-05 14:29:11 +01:00
parent bdb1650ed8
commit 0076458e9d
7 changed files with 51 additions and 66 deletions

View File

@@ -29,6 +29,7 @@
#include "sysincl.h"
/* Type for timeout IDs, valid IDs are always greater than zero */
typedef unsigned long SCH_TimeoutID;
typedef enum {