If aul_watchdog_kick() is called immediately after calling
aul_watchdog_enable(), an idle event is started.
Because, the interval of the timer is zero in this time.
Change-Id: I49e2643db2435150a8335242b4376a7d4e762b34
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
void aul_watchdog_start(unsigned int interval)
{
+ if (interval == 0) {
+ _E("Invalid parameter");
+ return;
+ }
+
if (__context.timer) {
_W("Timer already exists");
return;