Re: suspend-to-{RAM,disk} for 2.5.17

Linus Torvalds (torvalds@transmeta.com)
Tue, 21 May 2002 16:26:44 -0700 (PDT)


On Wed, 22 May 2002, Pavel Machek wrote:
> Do you think I should modify schedule() to do freezing automatically?
> I wanted to keep my hands off hot paths... I'd rather not do that.

No, I just suspect you could freeze them _while_ they sleep by just
picking up their information from the normal save area.

Yeah, I know, Linux tends to save a lot of the process stuff implicitly on
the stack, so maybe that ends up being harder than it sounds, and you've
done it for other tasks with the signal handler code instead, but you
_should_ be able to do it without any signal handler hackery by just
saving off their kernel stack and the stuff in the thread structure.

That's just a gut feeling, not having actually looked at the real details.

Linus

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/