|
@@ -55,9 +55,6 @@ static unsigned long long notrace cyc_to_sched_clock(u32 cyc, u32 mask)
|
|
|
u64 epoch_ns;
|
|
|
u32 epoch_cyc;
|
|
|
|
|
|
- if (cd.suspended)
|
|
|
- return cd.epoch_ns;
|
|
|
-
|
|
|
/*
|
|
|
* Load the epoch_cyc and epoch_ns atomically. We do this by
|
|
|
* ensuring that we always write epoch_cyc, epoch_ns and
|
|
@@ -174,6 +171,9 @@ unsigned long long __read_mostly (*sched_clock_func)(void) = sched_clock_32;
|
|
|
|
|
|
unsigned long long notrace sched_clock(void)
|
|
|
{
|
|
|
+ if (cd.suspended)
|
|
|
+ return cd.epoch_ns;
|
|
|
+
|
|
|
return sched_clock_func();
|
|
|
}
|
|
|
|