timekeeping: Fix invalid getboottime() value
authorHiroshi Shimamoto <h-shimamoto@ct.jp.nec.com>
Tue, 25 Aug 2009 06:08:30 +0000 (15:08 +0900)
committerIngo Molnar <mingo@elte.hu>
Tue, 25 Aug 2009 07:09:02 +0000 (09:09 +0200)
commit36d47481b3824b661b464077db95d447984df799
tree7ae9dc060872f879403e78ab1b1abd7f4ada4ed0
parent0ceb4c3e3f1ccaf121851e33c3ea269b8ad0f219
timekeeping: Fix invalid getboottime() value

Don't use timespec_add_safe() with wall_to_monotonic, because
wall_to_monotonic has negative values which will cause overflow
in timespec_add_safe(). That makes btime in /proc/stat invalid.

Signed-off-by: Hiroshi Shimamoto <h-shimamoto@ct.jp.nec.com>
Cc: Martin Schwidefsky <schwidefsky@de.ibm.com>
Cc: John Stultz <johnstul@us.ibm.com>
Cc: Daniel Walker <dwalker@fifo99.com>
LKML-Reference: <4A937FDE.4050506@ct.jp.nec.com>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
kernel/time/timekeeping.c