From: Uli Luckas <u.luckas@road.de>
To: linux-pm@lists.linux-foundation.org
Subject: Why schedule in thaw_processes
Date: Thu, 28 Jun 2007 15:53:48 +0200 [thread overview]
Message-ID: <200706281553.48897.u.luckas@road.de> (raw)
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?
regards,
Uli
--
------- ROAD ...the handyPC Company - - - ) ) )
Uli Luckas
Software Development
ROAD GmbH
Bennigsenstr. 14 | 12159 Berlin | Germany
fon: +49 (30) 230069 - 64 | fax: +49 (30) 230069 - 69
url: www.road.de
Amtsgericht Charlottenburg: HRB 96688 B
Managing directors: Hans-Peter Constien, Hubertus von Streit
next reply other threads:[~2007-06-28 13:53 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-06-28 13:53 Uli Luckas [this message]
2007-06-29 13:00 ` Why schedule in thaw_processes Rafael J. Wysocki
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=200706281553.48897.u.luckas@road.de \
--to=u.luckas@road.de \
--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