diff mbox

acpi: Minor cleanup eliminating redundant PMTIMER_TICKS to NS conversion

Message ID AANLkTikdLzwZmbJ4kubmdmArqgo7ya1ooN7XQzqN-39z@mail.gmail.com (mailing list archive)
State Rejected, archived
Headers show

Commit Message

Venkatesh Pallipadi May 18, 2010, 1:47 a.m. UTC
None
diff mbox

Patch

diff --git a/drivers/acpi/processor_idle.c b/drivers/acpi/processor_idle.c
index 9e734ce..336da8d 100644
--- a/drivers/acpi/processor_idle.c
+++ b/drivers/acpi/processor_idle.c
@@ -80,7 +80,7 @@  module_param(nocst, uint, 0000);
 static unsigned int latency_factor __read_mostly = 2;
 module_param(latency_factor, uint, 0644);

-static s64 us_to_pm_timer_ticks(s64 t)
+static u64 us_to_pm_timer_ticks(s64 t)
 {
 	return div64_u64(t * PM_TIMER_FREQUENCY, 1000000);
 }
@@ -741,10 +741,10 @@  static int acpi_processor_power_seq_show(struct
seq_file *seq, void *offset)
 		else
 			seq_puts(seq, "demotion[--] ");

-		seq_printf(seq, "latency[%03d] usage[%08d] duration[%020llu]\n",
+		seq_printf(seq, "latency[%03d] usage[%08d] duration[%020Lu]\n",
 			   pr->power.states[i].latency,
 			   pr->power.states[i].usage,
-			   (unsigned long long)pr->power.states[i].time);
+			   us_to_pm_timer_ticks(pr->power.states[i].time));
 	}