diff options
author | Kevin O'Connor <kevin@koconnor.net> | 2017-08-07 12:33:08 -0400 |
---|---|---|
committer | Kevin O'Connor <kevin@koconnor.net> | 2017-08-08 00:27:28 -0400 |
commit | 2c272f99a3fac49d8acd4b49a1aa3302225f17b8 (patch) | |
tree | 07998c722ed20fa812de26e1941daf57a030271f /src/generic/timer_irq.h | |
parent | a9982beacf184ccdc4bf1221852c900b0809537d (diff) | |
download | kutter-2c272f99a3fac49d8acd4b49a1aa3302225f17b8.tar.gz kutter-2c272f99a3fac49d8acd4b49a1aa3302225f17b8.tar.xz kutter-2c272f99a3fac49d8acd4b49a1aa3302225f17b8.zip |
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 <kevin@koconnor.net>
Diffstat (limited to 'src/generic/timer_irq.h')
-rw-r--r-- | src/generic/timer_irq.h | 1 |
1 files changed, 0 insertions, 1 deletions
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 |