ACPI: Minor cleanup eliminating redundant PMTIMER_TICKS to NS conversion
authorVenkatesh Pallipadi <venki@google.com>
Thu, 22 Apr 2010 23:48:33 +0000 (16:48 -0700)
committerLen Brown <len.brown@intel.com>
Fri, 28 May 2010 19:00:55 +0000 (15:00 -0400)
commit2da513f582a96c053aacc2c92873978d2ea7abff
tree57e9d73800950668523cb0b9117d7dbc168e1580
parent34a18d6fe5430184e4ca96eeb074ee671d89fe7b
ACPI: Minor cleanup eliminating redundant PMTIMER_TICKS to NS conversion

acpi_enter_[simple,bm] does
idle timing in ns, convert it to timeval, then to us, then to
pmtimer_ticks and then back to ns.

This patch changes things to
idle timing in ns, convert it to us, and then to pmtimer_ticks.

Just saves an imul along this path, but makes the code cleaner.

Signed-off-by: Venkatesh Pallipadi <venki@google.com>
Signed-off-by: Len Brown <len.brown@intel.com>
drivers/acpi/processor_idle.c