diff options
author | Arjan van de Ven <arjan@infradead.org> | 2006-01-14 16:01:49 +0100 |
---|---|---|
committer | Dave Jones <davej@redhat.com> | 2006-01-18 13:53:45 -0800 |
commit | 83933af4720b282f6f6a0b6c05a2a47b4cf08819 (patch) | |
tree | 7f78fd9684268cb7b4cecac8b440ab0b1c58a5da /include/linux/cpufreq.h | |
parent | 3fc54d37ab64733448faf0185e19a80f070eb9e3 (diff) | |
download | linux-83933af4720b282f6f6a0b6c05a2a47b4cf08819.tar.gz linux-83933af4720b282f6f6a0b6c05a2a47b4cf08819.tar.bz2 linux-83933af4720b282f6f6a0b6c05a2a47b4cf08819.zip |
[CPUFREQ] convert remaining cpufreq semaphore to a mutex
This one fell through the automation at first because it initializes the
semaphore to locked, but that's easily remedied
Signed-off-by: Arjan van de Ven <arjan@infradead.org>
Signed-off-by: Dave Jones <davej@redhat.com>
drivers/cpufreq/cpufreq.c | 37 +++++++++++++++++++------------------
include/linux/cpufreq.h | 3 ++-
2 files changed, 21 insertions(+), 19 deletions(-)
Diffstat (limited to 'include/linux/cpufreq.h')
-rw-r--r-- | include/linux/cpufreq.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/include/linux/cpufreq.h b/include/linux/cpufreq.h index c31650df9241..17866d7e2b71 100644 --- a/include/linux/cpufreq.h +++ b/include/linux/cpufreq.h @@ -14,6 +14,7 @@ #ifndef _LINUX_CPUFREQ_H #define _LINUX_CPUFREQ_H +#include <linux/mutex.h> #include <linux/config.h> #include <linux/notifier.h> #include <linux/threads.h> @@ -82,7 +83,7 @@ struct cpufreq_policy { unsigned int policy; /* see above */ struct cpufreq_governor *governor; /* see below */ - struct semaphore lock; /* CPU ->setpolicy or ->target may + struct mutex lock; /* CPU ->setpolicy or ->target may only be called once a time */ struct work_struct update; /* if update_policy() needs to be |