|
Rockbox mail archiveSubject: Re: Use SLEEP instruction for longer (?) runtimeFrom: Björn Stenberg (bjorn_at_haxx.se) Date: 2003-01-21
Simon Elén wrote:
Yeah, I was curious about your choice of method. We have discussed this method previously, but rejected it since so very little time (a fraction of a tick) is actually spent sleeping. We didn't think it would make any noticeable difference on power use. Have you made any measurements?
The more efficient, but also more difficult, solution is to rewrite the scheduler to use a sorted sleep queue with a timeout for each thread and a wakeup timer interrupt. That way we can sleep for farily long periods of time. (At least on Recorder.)
-- Björn
Page was last modified "Jan 10 2012" The Rockbox Crew |