OSDN Git Service

tty: 8250, use ms_to_ktime
authorJiri Slaby <jslaby@suse.cz>
Tue, 2 Mar 2021 06:21:41 +0000 (07:21 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 10 Mar 2021 08:34:06 +0000 (09:34 +0100)
commit60294d86f27c9d075ca9b700b7786cef706546b5
tree70dc92a79d1434b05747158a41e6d85932d4b74d
parentf751ae1cbbf955d56162be85221c1f97c53a0683
tty: 8250, use ms_to_ktime

This really eliminates multiplications from the assembly. I would have
thought they are optimized by inlining ktime_set, but not on x86_64 with
gcc 10.

Signed-off-by: Jiri Slaby <jslaby@suse.cz>
Link: https://lore.kernel.org/r/20210302062214.29627-11-jslaby@suse.cz
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/tty/serial/8250/8250_port.c