]> git.baikalelectronics.ru Git - kernel.git/commit
[SPARC]: Make gettimeofday() monotonic again.
authorDavid S. Miller <davem@davemloft.net>
Wed, 9 Jan 2008 13:09:06 +0000 (05:09 -0800)
committerDavid S. Miller <davem@davemloft.net>
Sun, 13 Jan 2008 05:52:15 +0000 (21:52 -0800)
commit56bfddc5c30ec2366138205e7d88da3afee87866
tree52692a18ac958a419e8765b9e150786433c58c11
parentdf2c209a5456ec83baf5fde51ac18c5abd56414e
[SPARC]: Make gettimeofday() monotonic again.

When we switched away from the optimized C version
things stopped being monotonic.

The problem is that if we run this with interrupts disabled, we can
see the interrupt pending because the counter reached the limit value.
When this happens the counter has bit 31 set, and the low bits start
counting again from zero.

Reported by Martin Habets.

Signed-off-by: David S. Miller <davem@davemloft.net>
arch/sparc/kernel/time.c