Hi!Is it reproducible, or it just happened randomly once during shutdown? Did it work on at least few machines? Can you try this? I forgot that you can rmmod rtc-cmos, too... diff --git a/drivers/rtc/rtc-cmos.c b/drivers/rtc/rtc-cmos.c. Pavel diff --git a/drivers/rtc/rtc-cmos.c b/drivers/rtc/rtc-cmos.c index 5bbdb70..15050cd 100644 --- a/drivers/rtc/rtc-cmos.c +++ b/drivers/rtc/rtc-cmos.c @@ -402,6 +402,8 @@ int set_alarm(int length) unsigned long now, alarm; struct rtc_wkalrm alm; + if (!pc_rtc_device) + return -EFAULT; retval = cmos_read_time(pc_rtc_device, &alm.time); if (retval < 0) { printk("Auto sleep: can't get time?\n"); @@ -590,6 +592,7 @@ static void __exit cmos_do_remove(struct struct cmos_rtc *cmos = dev_get_drvdata(dev); struct resource *ports; + pc_rtc_device = NULL; cmos_do_shutdown(); if (is_valid_irq(cmos->irq)) diff --git a/kernel/power/sleepy.c b/kernel/power/sleepy.c index b8b2de3..222d22d 100644 --- a/kernel/power/sleepy.c +++ b/kernel/power/sleepy.c @@ -31,7 +31,8 @@ int ksleepyd(void *data) { msleep(5000); while (1) { - set_alarm(5); + if (set_alarm(5)) + return -EFAULT; pm_suspend(PM_SUSPEND_MEM); msleep(500000); } -- (english) http://www.livejournal.com/~pavelmachek (cesky, pictures) http://atrey.karlin.mff.cuni.cz/~pavel/picture/horses/blog.html --
| debian developer | Re: Dual-Licensing Linux Kernel with GPL V2 and GPL V3 |
| Greg Kroah-Hartman | [PATCH 002/196] Chinese: rephrase English introduction in HOWTO |
| Linus Torvalds | Re: Long delay in resume from RAM (Was Re: [patch 00/69] -stablereview) |
| Parag Warudkar | BUG: soft lockup - CPU#1 stuck for 15s! [swapper:0] |
git: | |
| Andi Kleen | [PATCH RFC] [4/9] modpost: Fix format string warnings |
| Rick Jones | Re: Network latency regressions from 2.6.22 to 2.6.29 |
| Antonio Almeida | HTB accuracy for high speed |
| Gerrit Renker | [PATCH 27/37] dccp: Integration of dynamic feature activation - part 2 (server side) |
