From: Dominik Brodowski <linux@brodo.de>
To: Andrew Morton <akpm@osdl.org>, davej@codemonkey.org.uk
Cc: Ashley Pittman <ashley@quadrics.com>, cpufreq@www.linux.org.uk
Subject: Re: Fw: Re: [OOPS] [2.6.0-test5-bk8] cpufreq and sysfs problem...
Date: Fri, 3 Oct 2003 19:29:56 +0200 [thread overview]
Message-ID: <20031003172956.GB4050@brodo.de> (raw)
In-Reply-To: <20030924153746.3b0f6493.akpm@osdl.org>
Thanks for noticing this. Attached patch [for 2.6.0-test6-bk] should fix it.
Dominik
diff -ruN linux-original/drivers/cpufreq/cpufreq.c linux/drivers/cpufreq/cpufreq.c
--- linux-original/drivers/cpufreq/cpufreq.c 2003-10-02 17:36:42.000000000 +0200
+++ linux/drivers/cpufreq/cpufreq.c 2003-10-03 19:09:45.336175240 +0200
@@ -449,6 +449,9 @@
if (!kobject_get(&data->kobj))
return -EFAULT;
+ if (cpufreq_driver->target)
+ __cpufreq_governor(data, CPUFREQ_GOV_STOP);
+
kobject_unregister(&data->kobj);
kobject_put(&data->kobj);
@@ -459,9 +462,6 @@
*/
wait_for_completion(&data->kobj_unregister);
- if (cpufreq_driver->target)
- __cpufreq_governor(data, CPUFREQ_GOV_STOP);
-
if (cpufreq_driver->exit)
cpufreq_driver->exit(data);
next prev parent reply other threads:[~2003-10-03 17:29 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2003-09-24 22:37 Fw: Re: [OOPS] [2.6.0-test5-bk8] cpufreq and sysfs problem Andrew Morton
2003-10-03 17:29 ` Dominik Brodowski [this message]
2003-10-28 23:40 ` Ashley Pittman
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20031003172956.GB4050@brodo.de \
--to=linux@brodo.de \
--cc=akpm@osdl.org \
--cc=ashley@quadrics.com \
--cc=cpufreq@www.linux.org.uk \
--cc=davej@codemonkey.org.uk \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox