dev builds
themes manual
device status forums
mailing lists
IRC bugs
dev guide

Rockbox mail archive

Subject: Re: Use SLEEP instruction for longer (?) runtime

Re: Use SLEEP instruction for longer (?) runtime

From: Björn Stenberg <>
Date: Tue, 21 Jan 2003 15:50:23 +0100

Simon Elén wrote:
> Now that's what I call a fast response :-)

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.)

Received on 2003-01-21

Page template was last modified "Tue Sep 7 00:00:02 2021" The Rockbox Crew -- Privacy Policy