On Thu, 2005-12-01 at 16:02 +1100, Matthew Percival wrote: > G'Day, > > I am looking to make a modification to the scheduler (2.6.14) for an > embedded system. The basic idea is to drop into a lower power mode, > rather than scheduling an idle task, when there is no real work to be > done. The plan is then to trigger a wake up on a counter interrupt, so > that it wakes just before the next timeslice is due. actually, this doesn't need touching the scheduler, it's even simpler! For example, on x86 this is exactly done, via the "hlt" instruction. But it's done from the idle loop itself, not from the scheduler. I suspect your case can be exactly the same, do it from inside the idle handler, and that is a lot simpler than having to much with the scheduler. See the default_idle() function on i386 for how it's done there... -- Kernelnewbies: Help each other learn about the Linux kernel. Archive: http://mail.nl.linux.org/kernelnewbies/ FAQ: http://kernelnewbies.org/faq/