From: "Rafael J. Wysocki" <rjw@sisk.pl>
To: linux-pm@lists.linux-foundation.org
Subject: Re: Why schedule in thaw_processes
Date: Fri, 29 Jun 2007 15:00:31 +0200 [thread overview]
Message-ID: <200706291500.31884.rjw@sisk.pl> (raw)
In-Reply-To: <200706281553.48897.u.luckas@road.de>
Hi Uli,
Sorry for the delay, I've been a bit busy recently.
On Thursday, 28 June 2007 15:53, Uli Luckas wrote:
> Dear PM Team,
> i am working my way through the Linux power managemen subsystem, trying to
> understand, benchmark and improve our ARM based device's suspend/resume
> cycles.
> I measure the time from a wakeup event until suspend_finish() returns.
> I was very confused, why this interval varies between 150ms and 300ms. Walking
> the code I found the difference between 150ms wakeups and 300ms wakeups to
> come from a call to schedule() in thaw_processes().
> I do realise, that these extra 150ms are not wasted, as they are spent in
> other threads, doing what these threads need to do any way. Still an unneeded
> schedule() is overhead in itself and probably would not have been introduced
> without reason.
>
> So, can anyone explain, why this schedule() is of any benefit?
The reason, AFAICS, is that if there are threads of higher priority than us, in
particular with real time priority, we want them to be able to run as soon as
the're thawed.
Still, I don't think that's really essential, so we can remove this schedule().
Greetings,
Rafael
--
"Premature optimization is the root of all evil." - Donald Knuth
prev parent reply other threads:[~2007-06-29 13:00 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-06-28 13:53 Why schedule in thaw_processes Uli Luckas
2007-06-29 13:00 ` Rafael J. Wysocki [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=200706291500.31884.rjw@sisk.pl \
--to=rjw@sisk.pl \
--cc=linux-pm@lists.linux-foundation.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox