diff --git a/firmware/target/arm/s5l8702/system-s5l8702.c b/firmware/target/arm/s5l8702/system-s5l8702.c index b9d8094b3f..4a8f47e59e 100644 --- a/firmware/target/arm/s5l8702/system-s5l8702.c +++ b/firmware/target/arm/s5l8702/system-s5l8702.c @@ -25,8 +25,6 @@ #include "system-target.h" #include "pmu-target.h" -extern long sleepin, slept; - #define default_interrupt(name) \ extern __attribute__((weak,alias("UIRQ"))) void name (void) @@ -190,8 +188,6 @@ void irq_handler(void) asm volatile( "stmfd sp!, {r0-r7, ip, lr} \n" /* Store context */ "sub sp, sp, #8 \n"); /* Reserve stack */ - if (sleepin) slept += USEC_TIMER - sleepin; - sleepin = 0; void* dummy = VIC0ADDRESS; dummy = VIC1ADDRESS; uint32_t irqs0 = VIC0IRQSTATUS;