]> git.kernelconcepts.de Git - karo-tx-linux.git/commit
s390/timex: micro optimization for tod_to_ns
authorMartin Schwidefsky <schwidefsky@de.ibm.com>
Wed, 1 Mar 2017 08:47:57 +0000 (09:47 +0100)
committerMartin Schwidefsky <schwidefsky@de.ibm.com>
Wed, 1 Mar 2017 08:59:28 +0000 (09:59 +0100)
commitd03bd0454b101adb94d0b5a9cc11396182943cb4
tree1ff875a7337cbbd3ba85f8990e3d4103139c41cf
parente53051e757d6cd66741955b93581e54415e48a70
s390/timex: micro optimization for tod_to_ns

The conversion of a TOD value to nano-seconds currently uses a 32/32 bit
split with the calculation for "nsecs = (TOD * 125) >> 9". Using a
55/9 bit split saves an instruction.

Signed-off-by: Martin Schwidefsky <schwidefsky@de.ibm.com>
arch/s390/include/asm/timex.h