projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
f4b23cc
)
ACPI: fix unused function warning
author
KOSAKI Motohiro
<
[email protected]
>
Tue, 20 Jul 2010 22:18:35 +0000
(15:18 -0700)
committer
Len Brown
<
[email protected]
>
Wed, 21 Jul 2010 15:30:09 +0000
(11:30 -0400)
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]
>
drivers/acpi/processor_idle.c
patch
|
blob
|
history
diff --git
a/drivers/acpi/processor_idle.c
b/drivers/acpi/processor_idle.c
index b1b385692f46e09f05dd55882ed3ea9c73039b74..d0035946b6b9ad692f8ae1d2486f8a7bcd27ea8e 100644
(file)
--- a/
drivers/acpi/processor_idle.c
+++ b/
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.