Skip to content

Commit

Permalink
[PATCH] ppc64: Fix error in vDSO 32 bits date
Browse files Browse the repository at this point in the history
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: Benjamin Herrenschmidt <benh@kernel.crashing.org>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
  • Loading branch information
Benjamin Herrenschmidt authored and Linus Torvalds committed Oct 20, 2005
1 parent 6985c43 commit 83bcbf8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion arch/ppc64/kernel/vdso32/gettimeofday.S
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,7 @@ __do_get_xsec:
lwz r6,(CFG_TB_TO_XS+4)(r9)
mulhwu r4,r7,r5
mulhwu r6,r7,r6
mullw r6,r7,r5
mullw r0,r7,r5
addc r6,r6,r0

/* At this point, we have the scaled xsec value in r4 + XER:CA
Expand Down

0 comments on commit 83bcbf8

Please sign in to comment.