From 2c272f99a3fac49d8acd4b49a1aa3302225f17b8 Mon Sep 17 00:00:00 2001 From: Kevin O'Connor Date: Mon, 7 Aug 2017 12:33:08 -0400 Subject: sched: Implement generic sleep mechanism based on tasks pending Track when tasks are pending and spin in irq_wait() when no tasks are pending. This improves the mechanism for sleeping the processor - it's simpler for the board specific code and it reduces the possibility of the processor sleeping when tasks are busy. Signed-off-by: Kevin O'Connor --- src/generic/timer_irq.h | 1 - 1 file changed, 1 deletion(-) (limited to 'src/generic/timer_irq.h') diff --git a/src/generic/timer_irq.h b/src/generic/timer_irq.h index ad6ad033..031f0d6b 100644 --- a/src/generic/timer_irq.h +++ b/src/generic/timer_irq.h @@ -2,6 +2,5 @@ #define __GENERIC_TIMER_IRQ_H uint32_t timer_dispatch_many(void); -uint32_t timer_get_next(void); #endif // timer_irq.h -- cgit v1.2.3-70-g09d2