diff mbox

[1/2] acpi: fix unused function warning

Message ID 201007202218.o6KMIZ6c020963@imap1.linux-foundation.org (mailing list archive)
State New, archived
Headers show

Commit Message

Andrew Morton July 20, 2010, 10:18 p.m. UTC
None
diff mbox

Patch

diff -puN drivers/acpi/processor_idle.c~acpi-fix-unused-function-warning drivers/acpi/processor_idle.c
--- a/drivers/acpi/processor_idle.c~acpi-fix-unused-function-warning
+++ a/drivers/acpi/processor_idle.c
@@ -80,10 +80,13 @@  module_param(nocst, uint, 0000);
 static unsigned int latency_factor __read_mostly = 2;
 module_param(latency_factor, uint, 0644);
 
+#ifdef CONFIG_ACPI_PROCFS
 static u64 us_to_pm_timer_ticks(s64 t)
 {
 	return div64_u64(t * PM_TIMER_FREQUENCY, 1000000);
 }
+#endif
+
 /*
  * IBM ThinkPad R40e crashes mysteriously when going into C2 or C3.
  * For now disable this. Probably a bug somewhere else.