aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/acpi/processor_idle.c
diff options
context:
space:
mode:
authorKOSAKI Motohiro <kosaki.motohiro@jp.fujitsu.com>2010-07-20 18:18:35 -0400
committerLen Brown <len.brown@intel.com>2010-07-21 11:30:09 -0400
commit6c9c0fd062a6540dbee233151679b5f03ce433d9 (patch)
treea8bc129bec98139a720f33cdd3e1b69c1b4137f4 /drivers/acpi/processor_idle.c
parentf4b23cc2d5dc78ef5acbc529eb1219cc41eb5b96 (diff)
ACPI: fix unused function warning
CONFIG_ACPI_PROCFS=n: drivers/acpi/processor_idle.c:83: warning: 'us_to_pm_timer_ticks' defined but not used. Signed-off-by: KOSAKI Motohiro <kosaki.motohiro@jp.fujitsu.com> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Len Brown <len.brown@intel.com>
Diffstat (limited to 'drivers/acpi/processor_idle.c')
-rw-r--r--drivers/acpi/processor_idle.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/drivers/acpi/processor_idle.c b/drivers/acpi/processor_idle.c
index b1b385692f46..d0035946b6b9 100644
--- a/drivers/acpi/processor_idle.c
+++ b/drivers/acpi/processor_idle.c
@@ -80,10 +80,13 @@ module_param(nocst, uint, 0000);
80static unsigned int latency_factor __read_mostly = 2; 80static unsigned int latency_factor __read_mostly = 2;
81module_param(latency_factor, uint, 0644); 81module_param(latency_factor, uint, 0644);
82 82
83#ifdef CONFIG_ACPI_PROCFS
83static u64 us_to_pm_timer_ticks(s64 t) 84static u64 us_to_pm_timer_ticks(s64 t)
84{ 85{
85 return div64_u64(t * PM_TIMER_FREQUENCY, 1000000); 86 return div64_u64(t * PM_TIMER_FREQUENCY, 1000000);
86} 87}
88#endif
89
87/* 90/*
88 * IBM ThinkPad R40e crashes mysteriously when going into C2 or C3. 91 * IBM ThinkPad R40e crashes mysteriously when going into C2 or C3.
89 * For now disable this. Probably a bug somewhere else. 92 * For now disable this. Probably a bug somewhere else.