Skip to content

Commit b5d7682

Browse files
committed
delayacct: Use ktime_get_ts()
do_posix_clock_monotonic_gettime() is a leftover from the initial posix timer implementation which maps to ktime_get_ts(). Remove the silly wrapper while at it. Signed-off-by: Thomas Gleixner <tglx@linutronix.de> Cc: John Stultz <john.stultz@linaro.org> Cc: Peter Zijlstra <peterz@infradead.org> Link: http://lkml.kernel.org/r/20140611234606.931409215@linutronix.de Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
1 parent 2200182 commit b5d7682

1 file changed

Lines changed: 3 additions & 13 deletions

File tree

‎kernel/delayacct.c‎

Lines changed: 3 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -45,16 +45,6 @@ void __delayacct_tsk_init(struct task_struct *tsk)
4545
spin_lock_init(&tsk->delays->lock);
4646
}
4747

48-
/*
49-
* Start accounting for a delay statistic using
50-
* its starting timestamp (@start)
51-
*/
52-
53-
static inline void delayacct_start(struct timespec *start)
54-
{
55-
do_posix_clock_monotonic_gettime(start);
56-
}
57-
5848
/*
5949
* Finish delay accounting for a statistic using
6050
* its timestamps (@start, @end), accumalator (@total) and @count
@@ -67,7 +57,7 @@ static void delayacct_end(struct timespec *start, struct timespec *end,
6757
s64 ns;
6858
unsigned long flags;
6959

70-
do_posix_clock_monotonic_gettime(end);
60+
ktime_get_ts(end);
7161
ts = timespec_sub(*end, *start);
7262
ns = timespec_to_ns(&ts);
7363
if (ns < 0)
@@ -81,7 +71,7 @@ static void delayacct_end(struct timespec *start, struct timespec *end,
8171

8272
void __delayacct_blkio_start(void)
8373
{
84-
delayacct_start(&current->delays->blkio_start);
74+
ktime_get_ts(&current->delays->blkio_start);
8575
}
8676

8777
void __delayacct_blkio_end(void)
@@ -169,7 +159,7 @@ __u64 __delayacct_blkio_ticks(struct task_struct *tsk)
169159

170160
void __delayacct_freepages_start(void)
171161
{
172-
delayacct_start(&current->delays->freepages_start);
162+
ktime_get_ts(&current->delays->freepages_start);
173163
}
174164

175165
void __delayacct_freepages_end(void)

0 commit comments

Comments
 (0)