summaryrefslogtreecommitdiffstats
path: root/drivers/acpi/processor_idle.c
diff options
context:
space:
mode:
authorLen Brown <len.brown@intel.com>2010-07-23 00:19:12 +0200
committerLen Brown <len.brown@intel.com>2010-07-23 00:19:12 +0200
commitbbac30edb39a80426e4a3420a5ec635eb4466f63 (patch)
tree2c69ae7372ba4695e32218e866baa27910f5a928 /drivers/acpi/processor_idle.c
parentMerge branch 'bugzilla-15886' into release (diff)
parentACPI: fix unused function warning (diff)
downloadlinux-bbac30edb39a80426e4a3420a5ec635eb4466f63.tar.xz
linux-bbac30edb39a80426e4a3420a5ec635eb4466f63.zip
Merge branch 'misc' into release
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 1d4104855296..e9a8026d39f0 100644
--- a/drivers/acpi/processor_idle.c
+++ b/drivers/acpi/processor_idle.c
@@ -82,10 +82,13 @@ module_param(bm_check_disable, 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.