mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-28 02:32:09 -04:00
[PATCH] remove add_parent()'s parent argument
add_parent(p, parent) is always called with parent == p->parent, and it makes no sense to do it differently. This patch removes this argument. No changes in affected .o files. Signed-off-by: Oleg Nesterov <[email protected]> Cc: "Eric W. Biederman" <[email protected]> Signed-off-by: Andrew Morton <[email protected]> Signed-off-by: Linus Torvalds <[email protected]>
This commit is contained in:
parent
d799f03597
commit
8fafabd86f
4 changed files with 7 additions and 7 deletions
|
|
@ -603,7 +603,7 @@ repeat:
|
|||
/* move to end of parent's list to avoid starvation */
|
||||
write_lock_irq(&tasklist_lock);
|
||||
remove_parent(p);
|
||||
add_parent(p, p->parent);
|
||||
add_parent(p);
|
||||
write_unlock_irq(&tasklist_lock);
|
||||
retval = ru ? getrusage(p, RUSAGE_BOTH, ru) : 0;
|
||||
if (retval)
|
||||
|
|
@ -643,7 +643,7 @@ repeat:
|
|||
write_lock_irq(&tasklist_lock);
|
||||
remove_parent(p);
|
||||
p->parent = p->real_parent;
|
||||
add_parent(p, p->parent);
|
||||
add_parent(p);
|
||||
do_notify_parent(p, SIGCHLD);
|
||||
write_unlock_irq(&tasklist_lock);
|
||||
} else
|
||||
|
|
|
|||
Loading…
Reference in a new issue