From: Pavel Machek <pavel@ucw.cz>
To: "Rafael J. Wysocki" <rjw@sisk.pl>
Cc: Len Brown <lenb@kernel.org>,
"Len Brown (Intel)" <len.brown@intel.com>,
LKML <linux-kernel@vger.kernel.org>,
ACPI Devel Mailing List <linux-acpi@vger.kernel.org>,
Linux PM list <linux-pm@vger.kernel.org>
Subject: Re: [Resend 2x] thermal: Prevent polling from happening during system suspend
Date: Fri, 17 Feb 2012 20:29:14 +0100 [thread overview]
Message-ID: <20120217192914.GH2707@elf.ucw.cz> (raw)
In-Reply-To: <201111061421.38580.rjw@sisk.pl>
On Sun 2011-11-06 14:21:38, Rafael J. Wysocki wrote:
> From: Rafael J. Wysocki <rjw@sisk.pl>
>
> The thermal driver should use a freezable workqueue to schedule
> polling to prevent thermal_zone_device_update() from being run
> during system suspend, when the devices it relies on may be inactive.
> Make it use the system freezable workqueue for this purpose.
Umm. hibernation can take long time and (with latest compression
patches) can be CPU intensive.
Is it good idea to disable thermal management?
Should we kick fans to full speed before starting hibernation?
Pavel
> @@ -678,10 +678,10 @@ static void thermal_zone_device_set_poll
> return;
>
> if (delay > 1000)
> - schedule_delayed_work(&(tz->poll_queue),
> + queue_delayed_work(system_freezable_wq, &(tz->poll_queue),
> round_jiffies(msecs_to_jiffies(delay)));
> else
> - schedule_delayed_work(&(tz->poll_queue),
> + queue_delayed_work(system_freezable_wq, &(tz->poll_queue),
> msecs_to_jiffies(delay));
> }
--
(english) http://www.livejournal.com/~pavelmachek
(cesky, pictures) http://atrey.karlin.mff.cuni.cz/~pavel/picture/horses/blog.html
prev parent reply other threads:[~2012-02-17 19:29 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-11-06 13:21 [Resend 2x] thermal: Prevent polling from happening during system suspend Rafael J. Wysocki
2011-11-07 1:39 ` Len Brown
2012-02-17 19:29 ` Pavel Machek [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=20120217192914.GH2707@elf.ucw.cz \
--to=pavel@ucw.cz \
--cc=len.brown@intel.com \
--cc=lenb@kernel.org \
--cc=linux-acpi@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-pm@vger.kernel.org \
--cc=rjw@sisk.pl \
/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