]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit32e6126b43857e8ee3d6b57cedef3d6d5d8bc9bb
tree57e9d73800950668523cb0b9117d7dbc168e1580
parentd3a2ea1e4a4eca1ef95037ec4a8d0b32600c34e8
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