powercap: idle_inject: use us_to_ktime() where appropriate
authorXichao Zhao <zhao.xichao@vivo.com>
Wed, 13 Aug 2025 07:54:33 +0000 (15:54 +0800)
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>
Thu, 21 Aug 2025 19:57:54 +0000 (21:57 +0200)
commit03cf825911c95f39d77d2a60b35fe5b4a33115b1
tree5fbe0193839c9c0f2f02563a0b94df5643ce4ec6
parentc17b750b3ad9f45f2b6f7e6f7f4679844244f0b9
powercap: idle_inject: use us_to_ktime() where appropriate

Convert values in microseconds to ktime using us_to_ktime() instead of
multiplying them by NSEC_PER_USEC and using ns_to_ktime() for the
conversion.

Signed-off-by: Xichao Zhao <zhao.xichao@vivo.com>
Link: https://patch.msgid.link/20250813075433.464786-1-zhao.xichao@vivo.com
[ rjw: Subject and changelog edits ]
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
drivers/powercap/idle_inject.c