|
@@ -60,6 +60,7 @@
|
|
#define TICK_SIZE tick
|
|
#define TICK_SIZE tick
|
|
|
|
|
|
u64 sched_clock_base_cc = -1; /* Force to data section. */
|
|
u64 sched_clock_base_cc = -1; /* Force to data section. */
|
|
|
|
+EXPORT_SYMBOL_GPL(sched_clock_base_cc);
|
|
|
|
|
|
static DEFINE_PER_CPU(struct clock_event_device, comparators);
|
|
static DEFINE_PER_CPU(struct clock_event_device, comparators);
|
|
|
|
|
|
@@ -68,7 +69,7 @@ static DEFINE_PER_CPU(struct clock_event_device, comparators);
|
|
*/
|
|
*/
|
|
unsigned long long notrace sched_clock(void)
|
|
unsigned long long notrace sched_clock(void)
|
|
{
|
|
{
|
|
- return ((get_clock_xt() - sched_clock_base_cc) * 125) >> 9;
|
|
|
|
|
|
+ return (get_clock_monotonic() * 125) >> 9;
|
|
}
|
|
}
|
|
|
|
|
|
/*
|
|
/*
|