[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <474A8A82.6040303@gmail.com>
Date: Mon, 26 Nov 2007 09:57:38 +0100
From: Jiri Slaby <jirislaby@...il.com>
To: "Rafael J. Wysocki" <rjw@...k.pl>
CC: "Mark M. Hoffman" <mhoffman@...htlink.com>,
Alan Stern <stern@...land.harvard.edu>,
Rudolf Marek <r.marek@...embler.cz>, Greg KH <greg@...ah.com>,
Kernel development list <linux-kernel@...r.kernel.org>,
lm-sensors@...sensors.org,
Andrew Morton <akpm@...ux-foundation.org>,
Linux-pm mailing list <linux-pm@...ts.linux-foundation.org>
Subject: Re: [lm-sensors] broken suspend [Was: 2.6.24-rc2-mm1]
On 11/21/2007 01:00 AM, Rafael J. Wysocki wrote:
> On Tuesday, 20 of November 2007, Mark M. Hoffman wrote:
>> commit ce9c7b78c839a6304696d90083eac08baad524ce
>> Author: Mark M. Hoffman <mhoffman@...htlink.com>
>> Date: Tue Nov 20 07:51:50 2007 -0500
>>
>> hwmon: (coretemp) fix suspend/resume hang
>>
>> Signed-off-by: Mark M. Hoffman <mhoffman@...htlink.com>
>
> I'd do it like this:
>
>> diff --git a/drivers/hwmon/coretemp.c b/drivers/hwmon/coretemp.c
>> index 5c82ec7..afe2d31 100644
>> --- a/drivers/hwmon/coretemp.c
>> +++ b/drivers/hwmon/coretemp.c
>> @@ -338,10 +338,12 @@ static int coretemp_cpu_callback(struct notifier_block *nfb,
>> switch (action) {
>> case CPU_ONLINE:
>> case CPU_ONLINE_FROZEN:
>> + case CPU_DOWN_FAILED:
>> coretemp_device_add(cpu);
> + case CPU_DOWN_FAILED_FROZEN:
>> break;
>> - case CPU_DEAD:
>> - case CPU_DEAD_FROZEN:
>> + case CPU_DOWN_PREPARE:
>> coretemp_device_remove(cpu);
> + case CPU_DOWN_PREPARE_FROZEN:
>> break;
>> }
Sorry for the delay, this (trimmed version) solves the problem!
thanks,
--
Jiri Slaby (jirislaby@...il.com)
Faculty of Informatics, Masaryk University
-
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