Searched hist:"86 e9466a" (Results 1 – 1 of 1) sorted by relevance
/openbmc/linux/drivers/idle/ |
H A D | intel_idle.c | 86e9466a Fri Jan 17 04:46:24 CST 2020 Rafael J. Wysocki <rafael.j.wysocki@intel.com> 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> 86e9466a Fri Jan 17 04:46:24 CST 2020 Rafael J. Wysocki <rafael.j.wysocki@intel.com> 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>
|