summaryrefslogtreecommitdiff
path: root/include/linux/cpufreq.h
diff options
context:
space:
mode:
authorDave Jones <davej@codemonkey.org.uk>2003-07-09 18:21:45 +0100
committerDave Jones <davej@tetrachloride.(none)>2003-07-09 18:21:45 +0100
commit1c576b19a92e6a4b489c033d77bf2bd512fa7b8e (patch)
tree3d2f1d971dc81232be761ac26229cd840409d377 /include/linux/cpufreq.h
parent2c3b4f8952b94576e4958af9e821716545bee9cc (diff)
[CPUFREQ] kobj refcount fixes.
Wait with the destruction of cpufreq objects until all references are gone (code partly based on rmk's comparable patch for the PCMCIA subsystem. From Dominik.
Diffstat (limited to 'include/linux/cpufreq.h')
-rw-r--r--include/linux/cpufreq.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/include/linux/cpufreq.h b/include/linux/cpufreq.h
index a2fee295ae1a..5a75fc3a69f2 100644
--- a/include/linux/cpufreq.h
+++ b/include/linux/cpufreq.h
@@ -20,6 +20,7 @@
#include <linux/device.h>
#include <linux/kobject.h>
#include <linux/sysfs.h>
+#include <linux/completion.h>
#define CPUFREQ_NAME_LEN 16
@@ -71,6 +72,7 @@ struct cpufreq_policy {
struct kobject kobj;
struct semaphore lock; /* CPU ->setpolicy or ->target may
only be called once a time */
+ struct completion kobj_unregister;
};
#define CPUFREQ_ADJUST (0)