diff options
author | Zhao Yakui <yakui.zhao@intel.com> | 2009-06-23 23:49:49 -0400 |
---|---|---|
committer | Len Brown <len.brown@intel.com> | 2009-06-24 01:13:15 -0400 |
commit | 74cad4ee9839669ad920257678ea0bf0a818cd3b (patch) | |
tree | a32e8b4baf67eedb2e9dbc9799c326b92017e1ed /drivers/acpi/processor_throttling.c | |
parent | 07a2039b8eb0af4ff464efd3dfd95de5c02648c6 (diff) |
ACPI: Make ACPI processor proc I/F depend on the ACPI_PROCFS
Now whether the ACPI processor proc I/F is registered depends on the
CONFIG_PROC. It had better depend on the CONFIG_ACPI_PROCFS.
When the CONFIG_ACPI_PROCFS is unset in kernel configuration, the
ACPI processor proc I/F won't be registered.
Signed-off-by: Zhao Yakui <yakui.zhao@intel.com>
Signed-off-by: Len Brown <len.brown@intel.com>
Diffstat (limited to 'drivers/acpi/processor_throttling.c')
-rw-r--r-- | drivers/acpi/processor_throttling.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/acpi/processor_throttling.c b/drivers/acpi/processor_throttling.c index 227543789ba9..16560014f7bd 100644 --- a/drivers/acpi/processor_throttling.c +++ b/drivers/acpi/processor_throttling.c | |||
@@ -1214,7 +1214,7 @@ int acpi_processor_get_throttling_info(struct acpi_processor *pr) | |||
1214 | } | 1214 | } |
1215 | 1215 | ||
1216 | /* proc interface */ | 1216 | /* proc interface */ |
1217 | 1217 | #ifdef CONFIG_ACPI_PROCFS | |
1218 | static int acpi_processor_throttling_seq_show(struct seq_file *seq, | 1218 | static int acpi_processor_throttling_seq_show(struct seq_file *seq, |
1219 | void *offset) | 1219 | void *offset) |
1220 | { | 1220 | { |
@@ -1322,3 +1322,4 @@ const struct file_operations acpi_processor_throttling_fops = { | |||
1322 | .llseek = seq_lseek, | 1322 | .llseek = seq_lseek, |
1323 | .release = single_release, | 1323 | .release = single_release, |
1324 | }; | 1324 | }; |
1325 | #endif | ||