[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-Id: <201110132107.38604.rjw@sisk.pl>
Date: Thu, 13 Oct 2011 21:07:38 +0200
From: "Rafael J. Wysocki" <rjw@...k.pl>
To: Alan Stern <stern@...land.harvard.edu>
Cc: Borislav Petkov <bp@...64.org>, Tejun Heo <tj@...nel.org>,
"Srivatsa S. Bhat" <srivatsa.bhat@...ux.vnet.ibm.com>,
Peter Zijlstra <a.p.zijlstra@...llo.nl>,
"pavel@....cz" <pavel@....cz>,
"len.brown@...el.com" <len.brown@...el.com>,
"mingo@...e.hu" <mingo@...e.hu>,
"akpm@...ux-foundation.org" <akpm@...ux-foundation.org>,
"suresh.b.siddha@...el.com" <suresh.b.siddha@...el.com>,
"lucas.demarchi@...fusion.mobi" <lucas.demarchi@...fusion.mobi>,
"rusty@...tcorp.com.au" <rusty@...tcorp.com.au>,
"rdunlap@...otime.net" <rdunlap@...otime.net>,
"vatsa@...ux.vnet.ibm.com" <vatsa@...ux.vnet.ibm.com>,
"ashok.raj@...el.com" <ashok.raj@...el.com>,
"tigran@...azian.fsnet.co.uk" <tigran@...azian.fsnet.co.uk>,
"tglx@...utronix.de" <tglx@...utronix.de>,
"hpa@...or.com" <hpa@...or.com>,
"linux-pm@...r.kernel.org" <linux-pm@...r.kernel.org>,
"linux-kernel@...r.kernel.org" <linux-kernel@...r.kernel.org>,
"linux-doc@...r.kernel.org" <linux-doc@...r.kernel.org>
Subject: Re: [PATCH v2 2/3] Mutually exclude cpu online and suspend/hibernate
On Thursday, October 13, 2011, Alan Stern wrote:
> On Thu, 13 Oct 2011, Borislav Petkov wrote:
>
> > On Thu, Oct 13, 2011 at 12:06:02PM -0400, Tejun Heo wrote:
> > > I hate to sound like a broken recorder but the above patch isn't
> > > strictly correct for hot-swap cases, right?
> >
> > hpa is working on a ucode loading solution which will take care of your
> > hotswap case too.
>
> You know, it would be a good idea to take a step back and think about a
> broader picture. Suspend and hibernate need to be mutually exclusive
> with other things as well. The two examples which people have been
> talking about are firmware updates (if the computer goes to sleep
> while the firmware is being changed, it ends up as a brick) and battery
> recharging (the CPU needs to respond quickly to temperature and charger
> events).
>
> There ought to be a general-purpose "prevent system sleep" mechanism
> usable both from within the kernel and from userspace.
I have a patch for that ready, will post it later today.
Thanks,
Rafael
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists