mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [PATCH] fix warning: us_to_pm_timer_ticks defined but not used
@ 2010-07-23 15:59 florian
  2010-07-24  8:57 ` Florian Mickler
  0 siblings, 1 reply; 2+ messages in thread
From: florian @ 2010-07-23 15:59 UTC (permalink / raw)
  To: linux-acpi
  Cc: Florian Mickler, Len Brown, Venkatesh Pallipadi, Suresh Siddha,
	linux-kernel

Move it under the same ifdef as its sole caller is.

Signed-off-by: Florian Mickler <florian@mickler.org>
---
 drivers/acpi/processor_idle.c |   10 ++++++----
 1 files changed, 6 insertions(+), 4 deletions(-)

diff --git a/drivers/acpi/processor_idle.c b/drivers/acpi/processor_idle.c
index b1b3856..8525070 100644
--- a/drivers/acpi/processor_idle.c
+++ b/drivers/acpi/processor_idle.c
@@ -80,10 +80,6 @@ module_param(nocst, uint, 0000);
 static unsigned int latency_factor __read_mostly = 2;
 module_param(latency_factor, uint, 0644);
 
-static u64 us_to_pm_timer_ticks(s64 t)
-{
-	return div64_u64(t * PM_TIMER_FREQUENCY, 1000000);
-}
 /*
  * IBM ThinkPad R40e crashes mysteriously when going into C2 or C3.
  * For now disable this. Probably a bug somewhere else.
@@ -685,6 +681,12 @@ static int acpi_processor_get_power_info(struct acpi_processor *pr)
 }
 
 #ifdef CONFIG_ACPI_PROCFS
+
+static u64 us_to_pm_timer_ticks(s64 t)
+{
+	return div64_u64(t * PM_TIMER_FREQUENCY, 1000000);
+}
+
 static int acpi_processor_power_seq_show(struct seq_file *seq, void *offset)
 {
 	struct acpi_processor *pr = seq->private;
-- 
1.7.1.1


^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: [PATCH] fix warning: us_to_pm_timer_ticks defined but not used
  2010-07-23 15:59 [PATCH] fix warning: us_to_pm_timer_ticks defined but not used florian
@ 2010-07-24  8:57 ` Florian Mickler
  0 siblings, 0 replies; 2+ messages in thread
From: Florian Mickler @ 2010-07-24  8:57 UTC (permalink / raw)
  To: florian
  Cc: linux-acpi, Len Brown, Venkatesh Pallipadi, Suresh Siddha, linux-kernel

On Fri, 23 Jul 2010 17:59:02 +0200
florian@mickler.org wrote:

> Move it under the same ifdef as its sole caller is.
> 
> Signed-off-by: Florian Mickler <florian@mickler.org>
> ---
>  drivers/acpi/processor_idle.c |   10 ++++++----
>  1 files changed, 6 insertions(+), 4 deletions(-)
> 
> diff --git a/drivers/acpi/processor_idle.c b/drivers/acpi/processor_idle.c
> index b1b3856..8525070 100644
> --- a/drivers/acpi/processor_idle.c
> +++ b/drivers/acpi/processor_idle.c
> @@ -80,10 +80,6 @@ module_param(nocst, uint, 0000);
>  static unsigned int latency_factor __read_mostly = 2;
>  module_param(latency_factor, uint, 0644);
>  
> -static u64 us_to_pm_timer_ticks(s64 t)
> -{
> -	return div64_u64(t * PM_TIMER_FREQUENCY, 1000000);
> -}
>  /*
>   * IBM ThinkPad R40e crashes mysteriously when going into C2 or C3.
>   * For now disable this. Probably a bug somewhere else.
> @@ -685,6 +681,12 @@ static int acpi_processor_get_power_info(struct acpi_processor *pr)
>  }
>  
>  #ifdef CONFIG_ACPI_PROCFS
> +
> +static u64 us_to_pm_timer_ticks(s64 t)
> +{
> +	return div64_u64(t * PM_TIMER_FREQUENCY, 1000000);
> +}
> +
>  static int acpi_processor_power_seq_show(struct seq_file *seq, void *offset)
>  {
>  	struct acpi_processor *pr = seq->private;

Ah, I just saw the Patch from KOSAKI Motohiro ([patch 1/2] acpi: fix
unused function warning) to the same effect. 
I should have checked the mailinglist before sending this :)

Sorry for the noise,

Flo

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2010-07-24  8:57 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2010-07-23 15:59 [PATCH] fix warning: us_to_pm_timer_ticks defined but not used florian
2010-07-24  8:57 ` Florian Mickler

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

Powered by JetHome