Skip to content

Commit 6c9c0fd

Browse files
kosakilenb
authored andcommitted
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 <[email protected]> Signed-off-by: Andrew Morton <[email protected]> Signed-off-by: Len Brown <[email protected]>
1 parent f4b23cc commit 6c9c0fd

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

drivers/acpi/processor_idle.c

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -80,10 +80,13 @@ module_param(nocst, uint, 0000);
8080
static unsigned int latency_factor __read_mostly = 2;
8181
module_param(latency_factor, uint, 0644);
8282

83+
#ifdef CONFIG_ACPI_PROCFS
8384
static u64 us_to_pm_timer_ticks(s64 t)
8485
{
8586
return div64_u64(t * PM_TIMER_FREQUENCY, 1000000);
8687
}
88+
#endif
89+
8790
/*
8891
* IBM ThinkPad R40e crashes mysteriously when going into C2 or C3.
8992
* For now disable this. Probably a bug somewhere else.

0 commit comments

Comments
 (0)