]> git.baikalelectronics.ru Git - kernel.git/commit
driver core: Use the ktime_us_delta() helper
authorZenghui Yu <yuzenghui@huawei.com>
Mon, 3 Aug 2020 03:33:43 +0000 (11:33 +0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 8 Sep 2020 11:32:06 +0000 (13:32 +0200)
commitc692b654748187a0bfbd4989c91cdb26856800d3
treee89dc59675b382a4f9c53eb311e1cb0062061627
parent6008a54914a291e1e8351d8349729d80b04ea393
driver core: Use the ktime_us_delta() helper

Use the ktime_us_delta() helper to measure the driver probe time. Given the
helpers already returns an s64 value, let's drop the unnecessary casting to
s64 as well. There is no functional change.

Signed-off-by: Zenghui Yu <yuzenghui@huawei.com>
Link: https://lore.kernel.org/r/20200803033343.1178-1-yuzenghui@huawei.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/base/dd.c