Re: [PATCH v2] Add suspend/resume for HPET
- From: Thomas Gleixner <tglx@xxxxxxxxxxxxx>
- Date: Sat, 31 Mar 2007 17:51:11 +0200
On Thu, 2007-03-29 at 15:46 +0200, Maxim Levitsky wrote:
Subject: Add suspend/resume for HPET
This adds support of suspend/resume on i386 for HPET
Signed-off-by: Maxim Levitsky <maximlevitsky@xxxxxxxxx>
+static struct sysdev_class hpet_class = {
+ set_kset_name("hpet"),
+ .suspend = hpet_suspend,
+ .resume = hpet_resume,
+};
+
+static struct sys_device hpet_device = {
+ .id = 0,
+ .cls = &hpet_class,
+};
Sorry for being inresponsive. I was travelling and unexpectedly cut off
from the internet for some days.
While I agree in principle with the patch, I'm a bit uncomfortable. The
sys device suspend / resume ordering is not guaranteed and relies on the
registering order.
Jeff still seems to have problems with CONFIG_NO_HZ=n and it might be
caused by time keeping / tick management resume happening before the
HPET resume.
The required resume order is:
clocksources
timekeeping
clockevents
tick management
I'm not sure how to do this properly with the sys device facilities, but
I look into it.
/me goes off to understand the sys device magic.
tglx
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
- Follow-Ups:
- Re: [PATCH v2] Add suspend/resume for HPET
- From: Maxim Levitsky
- Re: [PATCH v2] Add suspend/resume for HPET
- From: Linus Torvalds
- Re: [PATCH v2] Add suspend/resume for HPET
- From: Jeff Chua
- Re: [PATCH v2] Add suspend/resume for HPET
- References:
- Linux 2.6.21-rc4
- From: Linus Torvalds
- Re: [ PATCH] Add suspend/resume for HPET was: Re: [3/6] 2.6.21-rc4: known regressions
- From: Sergei Shtylyov
- Re: [ PATCH] Add suspend/resume for HPET was: Re: [3/6] 2.6.21-rc4: known regressions
- From: Maxim
- [PATCH v2] Add suspend/resume for HPET
- From: Maxim Levitsky
- Linux 2.6.21-rc4
- Prev by Date: Re: Fwd: kswapd issues + kernel 2.4.21-32.0.1.ELsmp
- Next by Date: Re: [PATCH v2] Add suspend/resume for HPET
- Previous by thread: Re: [PATCH v2] Add suspend/resume for HPET
- Next by thread: Re: [PATCH v2] Add suspend/resume for HPET
- Index(es):
Relevant Pages
|
|