Commit 83bcbf8d authored by Benjamin Herrenschmidt's avatar Benjamin Herrenschmidt Committed by Linus Torvalds

[PATCH] ppc64: Fix error in vDSO 32 bits date

The implementation of __kernel_gettimeofday() in the 32 bits vDSO has a
small bug (a typo actually) that will cause it to lose 1 bit of precision.
Not terribly bad but worth fixing.
Signed-off-by: default avatarBenjamin Herrenschmidt <benh@kernel.crashing.org>
Signed-off-by: default avatarAndrew Morton <akpm@osdl.org>
Signed-off-by: default avatarLinus Torvalds <torvalds@osdl.org>
parent 6985c43f
...@@ -109,7 +109,7 @@ __do_get_xsec: ...@@ -109,7 +109,7 @@ __do_get_xsec:
lwz r6,(CFG_TB_TO_XS+4)(r9) lwz r6,(CFG_TB_TO_XS+4)(r9)
mulhwu r4,r7,r5 mulhwu r4,r7,r5
mulhwu r6,r7,r6 mulhwu r6,r7,r6
mullw r6,r7,r5 mullw r0,r7,r5
addc r6,r6,r0 addc r6,r6,r0
/* At this point, we have the scaled xsec value in r4 + XER:CA /* At this point, we have the scaled xsec value in r4 + XER:CA
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment