diff options
| author | Andrew Morton <akpm@digeo.com> | 2003-05-12 09:11:06 -0700 |
|---|---|---|
| committer | Linus Torvalds <torvalds@home.transmeta.com> | 2003-05-12 09:11:06 -0700 |
| commit | 281df9b372d682a93f1fb4bdd9756d7601d50e0e (patch) | |
| tree | 7ecb46fa05b72ca53b52ff4e32ffbd520a1fb330 /include | |
| parent | ec2ecf307ab06d4182d571e335eafb25bf080d4b (diff) | |
[PATCH] export cpufreq_driver to fix oops in proc interface
From: Zwane Mwaikambo <zwane@linuxpower.ca>
The proc interface has no way of telling wether there is an active cpufreq
driver or not. This means that if you don't have a cpufreq supported
processor, this will oops in various possible places.
Diffstat (limited to 'include')
| -rw-r--r-- | include/linux/cpufreq.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/include/linux/cpufreq.h b/include/linux/cpufreq.h index e99b9c3c1d01..3dc9062bd414 100644 --- a/include/linux/cpufreq.h +++ b/include/linux/cpufreq.h @@ -311,4 +311,7 @@ void cpufreq_frequency_table_put_attr(unsigned int cpu); #endif /* CONFIG_CPU_FREQ_TABLE */ +/* Currently exported only for the proc interface, remove when that goes */ +extern struct cpufreq_driver *cpufreq_driver; + #endif /* _LINUX_CPUFREQ_H */ |
