projects
/
GitHub
/
LineageOS
/
android_kernel_samsung_universal7580.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
[PATCH] make taskstats sending completely independent of delay accounting on/off...
[GitHub/LineageOS/android_kernel_samsung_universal7580.git]
/
include
/
linux
/
delayacct.h
diff --git
a/include/linux/delayacct.h
b/include/linux/delayacct.h
index 7e8b6011b8f3e0c5b7b0ff6ab459a4aa158ab64b..8a284cc6fd5ffd810c2f58bfd17c66e7b6e5db1f 100644
(file)
--- a/
include/linux/delayacct.h
+++ b/
include/linux/delayacct.h
@@
-80,9
+80,7
@@
static inline void delayacct_blkio_end(void)
static inline int delayacct_add_tsk(struct taskstats *d,
struct task_struct *tsk)
{
- if (likely(!delayacct_on))
- return -EINVAL;
- if (!tsk->delays)
+ if (likely(!delayacct_on) || !tsk->delays)
return 0;
return __delayacct_add_tsk(d, tsk);
}