acpi: fix unused function warning
PATCH 1/2 acpi: fix unused function warning
From: KOSAKI Motohiro <[email protected]>
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 <[email protected]>
Cc Venkatesh Pallipadi <[email protected]>
Cc Len Brown <[email protected]>
Signed-off-by Andrew Morton <[email protected]>
---
drivers/acpi/processor_idle.c | 3 +++ 1 file changed, 3 insertions(+)
drivers/acpi/processor_idle.c renamed from drivers/acpi/processor_idle.c~acpi-fix-unused-function-warning +3 -0
@@ -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.
_