diff options
| author | Lin Feng <linf@wangsu.com> | 2019-05-14 18:42:34 -0400 |
|---|---|---|
| committer | Linus Torvalds <torvalds@linux-foundation.org> | 2019-05-14 22:52:49 -0400 |
| commit | e02c9b0d65a7493180db45320f82482c6ba8ea57 (patch) | |
| tree | eafaeb9479ea5fb62f5893cb28b0f69aa5ad79e7 /include/linux/latencytop.h | |
| parent | 0cc75888dad112395df0ac755915ceb79811831c (diff) | |
kernel/latencytop.c: rename clear_all_latency_tracing to clear_tsk_latency_tracing
The name clear_all_latency_tracing is misleading, in fact which only
clear per task's latency_record[], and we do have another function named
clear_global_latency_tracing which clear the global latency_record[]
buffer.
Link: http://lkml.kernel.org/r/20190226114602.16902-1-linf@wangsu.com
Signed-off-by: Lin Feng <linf@wangsu.com>
Cc: Alexey Dobriyan <adobriyan@gmail.com>
Cc: Fabian Frederick <fabf@skynet.be>
Cc: Arjan van de Ven <arjan@infradead.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'include/linux/latencytop.h')
| -rw-r--r-- | include/linux/latencytop.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/include/linux/latencytop.h b/include/linux/latencytop.h index 7c560e0dc8f4..9022f0c2e2e4 100644 --- a/include/linux/latencytop.h +++ b/include/linux/latencytop.h | |||
| @@ -36,7 +36,7 @@ account_scheduler_latency(struct task_struct *task, int usecs, int inter) | |||
| 36 | __account_scheduler_latency(task, usecs, inter); | 36 | __account_scheduler_latency(task, usecs, inter); |
| 37 | } | 37 | } |
| 38 | 38 | ||
| 39 | void clear_all_latency_tracing(struct task_struct *p); | 39 | void clear_tsk_latency_tracing(struct task_struct *p); |
| 40 | 40 | ||
| 41 | extern int sysctl_latencytop(struct ctl_table *table, int write, | 41 | extern int sysctl_latencytop(struct ctl_table *table, int write, |
| 42 | void __user *buffer, size_t *lenp, loff_t *ppos); | 42 | void __user *buffer, size_t *lenp, loff_t *ppos); |
| @@ -48,7 +48,7 @@ account_scheduler_latency(struct task_struct *task, int usecs, int inter) | |||
| 48 | { | 48 | { |
| 49 | } | 49 | } |
| 50 | 50 | ||
| 51 | static inline void clear_all_latency_tracing(struct task_struct *p) | 51 | static inline void clear_tsk_latency_tracing(struct task_struct *p) |
| 52 | { | 52 | { |
| 53 | } | 53 | } |
| 54 | 54 | ||
