spin_lock_init(&tsk->delays->lock);
}
-/*
- * Start accounting for a delay statistic using
- * its starting timestamp (@start)
- */
-
-static inline void delayacct_start(struct timespec *start)
-{
- do_posix_clock_monotonic_gettime(start);
-}
-
/*
* Finish delay accounting for a statistic using
* its timestamps (@start, @end), accumalator (@total) and @count
s64 ns;
unsigned long flags;
- do_posix_clock_monotonic_gettime(end);
+ ktime_get_ts(end);
ts = timespec_sub(*end, *start);
ns = timespec_to_ns(&ts);
if (ns < 0)
void __delayacct_blkio_start(void)
{
- delayacct_start(¤t->delays->blkio_start);
+ ktime_get_ts(¤t->delays->blkio_start);
}
void __delayacct_blkio_end(void)
void __delayacct_freepages_start(void)
{
- delayacct_start(¤t->delays->freepages_start);
+ ktime_get_ts(¤t->delays->freepages_start);
}
void __delayacct_freepages_end(void)