login
Header Space

 
 

Re: [2.6.25-rc1] System no longer powers off after shutdown

Score:
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
To: Greg KH <gregkh@...>
Cc: <linux-kernel@...>, <linux-acpi@...>
Date: Wednesday, February 13, 2008 - 7:39 am

On Tuesday 12 February 2008, Greg KH wrote:

I already noticed yesterday that there's one hunk in that commit that's not
a straight replacement:
diff --git a/drivers/cpufreq/cpufreq.c b/drivers/cpufreq/cpufreq.c
index 9e102af..5efd555 100644
--- a/drivers/cpufreq/cpufreq.c
+++ b/drivers/cpufreq/cpufreq.c
@@ -1030,8 +1030,6 @@ static int __cpufreq_remove_dev (struct sys_device * sys_dev)

        unlock_policy_rwsem_write(cpu);

-       kobject_unregister(&data->kobj);
-
        kobject_put(&data->kobj);

        /* we need to make sure that the underlying kobj is actually


So, just on the off chance, I applied the patch below and bingo, the system
powers off again. I doubt this will be the correct solution, but just in
case it is, here's my signed off. A comment why the double put is needed
would probably be good though.

Signed-off-by: Frans Pop <elendil@planet.nl>

diff --git a/drivers/cpufreq/cpufreq.c b/drivers/cpufreq/cpufreq.c
index 64926aa..9dbaac6 100644
--- a/drivers/cpufreq/cpufreq.c
+++ b/drivers/cpufreq/cpufreq.c
@@ -1058,6 +1058,7 @@ static int __cpufreq_remove_dev (struct sys_device * sys_dev)
 	unlock_policy_rwsem_write(cpu);
 
 	kobject_put(&data->kobj);
+	kobject_put(&data->kobj);
 
 	/* we need to make sure that the underlying kobj is actually
 	 * not referenced anymore by anybody before we proceed with
--
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
Re: [2.6.25-rc1] System no longer powers off after shutdown, Frans Pop, (Wed Feb 13, 7:39 am)
Re: [2.6.25-rc1] System no longer powers off after shutdown, Rafael J. Wysocki, (Wed Feb 13, 2:55 pm)
speck-geostationary