sched_clock: prevent scd->clock from moving backwards, take #2
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>
This commit is contained in:

committed by
Ingo Molnar

parent
6a94cb7306
commit
1c5745aa38
@@ -105,6 +105,7 @@ extern unsigned long read_persistent_clock(void);
|
||||
extern int update_persistent_clock(struct timespec now);
|
||||
extern int no_sync_cmos_clock __read_mostly;
|
||||
void timekeeping_init(void);
|
||||
extern int timekeeping_suspended;
|
||||
|
||||
unsigned long get_seconds(void);
|
||||
struct timespec current_kernel_time(void);
|
||||
|
Reference in New Issue
Block a user