]> git.baikalelectronics.ru Git - kernel.git/commit
Introduce boot based time
authorTomas Janousek <tjanouse@redhat.com>
Mon, 16 Jul 2007 06:39:41 +0000 (23:39 -0700)
committerLinus Torvalds <torvalds@woody.linux-foundation.org>
Mon, 16 Jul 2007 16:05:41 +0000 (09:05 -0700)
commitbc814e303e812b49321ea3fd0234373fc92f1277
treef308047c4f40022d4b8f7226fba73b067dcd2d70
parent1ca2453f1c061624bd0ba8470bb412e9fc02d467
Introduce boot based time

The commits

  86ff8658dde8f0a6d6ea0b65ded132430a5db5dd (GTOD: persistent clock support)
  a3daef07b885ad1af1b80a327fdd1607c6414fdd (i386: use GTOD persistent clock
    support)

changed the monotonic time so that it no longer jumps after resume, but it's
not possible to use it for boot time and process start time calculations then.
 Also, the uptime no longer increases during suspend.

I add a variable to track the wall_to_monotonic changes, a function to get the
real boot time and a function to get the boot based time from the monotonic
one.

[akpm@linux-foundation.org: remove exports, add comment]
Signed-off-by: Tomas Janousek <tjanouse@redhat.com>
Cc: Tomas Smetana <tsmetana@redhat.com>
Cc: John Stultz <johnstul@us.ibm.com>
Cc: Thomas Gleixner <tglx@linutronix.de>
Cc: Ingo Molnar <mingo@elte.hu>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
include/linux/time.h
kernel/time/timekeeping.c