sched_clock: prevent scd->clock from moving backwards, take #2
authorThomas Gleixner <tglx@linutronix.de>
Mon, 22 Dec 2008 22:05:28 +0000 (23:05 +0100)
committerIngo Molnar <mingo@elte.hu>
Wed, 31 Dec 2008 08:53:21 +0000 (09:53 +0100)
Redo:

  5b7dba4: sched_clock: prevent scd->clock from moving backwards

which had to be reverted due to s2ram hangs:

  ca7e716: Revert "sched_clock: prevent scd->clock from moving backwards"

... this time with resume restoring GTOD later in the sequence
taken into account as well.

The "timekeeping_suspended" flag is not very nice but we cannot call into
GTOD before it has been properly resumed and the scheduler will run very
early in the resume sequence.

Cc: <stable@kernel.org>
Signed-off-by: Ingo Molnar <mingo@elte.hu>

No differences found