On Thu 2006-06-29 00:37:47, Guennadi Liakhovetski wrote: > On Tue, 27 Jun 2006, Johannes Berg wrote: > > > You may want to hold off working on this a bit and first ask BenH for > > his old patches that converted the pmu stuff to the generic thing but > > needed invasive generic stuff first. > > Well, I started thinking about possible solutions for mpc824x by looking > at the only available sleep implementation for ppc in the kernel - > powermac. As was suggested I looked under drivers/macintosh. As an example > I took powerbook_sleep_grackle() (I think, grackle is also installed in > "blue and white" G3's, right?). There I see various calls to pmu_request() > with macros as parameters and some comments, so, most things can be > understood and mapped to another hardware (if still relevant under the new > power-management interface). But then come some things that I don't > understand: > > /* Ask the PMU to put us to sleep */ > pmu_request(&req, NULL, 5, PMU_SLEEP, 'M', 'A', 'T', 'T'); ~~~~~~~~~~~~~~~~~~ What kind of inside joke is that? Pavel -- (english) http://www.livejournal.com/~pavelmachek (cesky, pictures) http://atrey.karlin.mff.cuni.cz/~pavel/picture/horses/blog.html