Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

[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: Benjamin Herrenschmidt <benh@kernel.crashing.org>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>

authored by

Benjamin Herrenschmidt and committed by
Linus Torvalds
83bcbf8d 6985c43f

+1 -1
+1 -1
arch/ppc64/kernel/vdso32/gettimeofday.S
··· 109 109 lwz r6,(CFG_TB_TO_XS+4)(r9) 110 110 mulhwu r4,r7,r5 111 111 mulhwu r6,r7,r6 112 - mullw r6,r7,r5 112 + mullw r0,r7,r5 113 113 addc r6,r6,r0 114 114 115 115 /* At this point, we have the scaled xsec value in r4 + XER:CA