]> granicus.if.org Git - procps-ng/commit
top: make the 'cpu_tics' function a tad more efficient
authorJim Warner <james.warner@comcast.net>
Wed, 8 Jul 2020 05:00:00 +0000 (00:00 -0500)
committerCraig Small <csmall@dropbear.xyz>
Mon, 20 Jul 2020 06:15:14 +0000 (16:15 +1000)
commit3e2cd9f87b054999b8d38a5243aec26e7becf858
tree494b7e785a2b7bee109dd782d8492ceea97c10f4
parent8c115f6cf32c52a99dabd827c7c40634875cc8b9
top: make the 'cpu_tics' function a tad more efficient

This patch eliminates one variable which resulted in a
corresponding elimination of three 'mov' instructions.

[ that was 6 bytes per 'mov' for a total of 18 bytes ]

Signed-off-by: Jim Warner <james.warner@comcast.net>
top/top.c