]> git.baikalelectronics.ru Git - kernel.git/commit
intel_idle: Clean up irtl_2_usec()
authorRafael J. Wysocki <rafael.j.wysocki@intel.com>
Fri, 17 Jan 2020 10:46:24 +0000 (11:46 +0100)
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>
Wed, 22 Jan 2020 23:37:02 +0000 (00:37 +0100)
commit3bba4fb45a1ee18753cbd8333b30ffb62d6f55be
tree43b210a9685b68e5b9d13846f57ecd399a683d64
parent4d06e1cd72009b2892439c867b67036573b36944
intel_idle: Clean up irtl_2_usec()

Move the irtl_ns_units[] definition into irtl_2_usec() which is the
only user of it, use div_u64() for the division in there (as the
divisor is small enough) and use the NSEC_PER_USEC symbol for the
divisor.  Also convert the irtl_2_usec() comment to a proper
kerneldo one.

No intentional functional impact.

Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
drivers/idle/intel_idle.c