mirror of
https://github.com/Fishwaldo/Star64_linux.git
synced 2025-06-19 13:11:14 +00:00
[PATCH] mutex subsystem, debugging code
mutex implementation - add debugging code. Signed-off-by: Ingo Molnar <mingo@elte.hu> Signed-off-by: Arjan van de Ven <arjan@infradead.org>
This commit is contained in:
parent
f3f54ffa70
commit
408894ee4d
7 changed files with 637 additions and 0 deletions
|
@ -979,6 +979,10 @@ static task_t *copy_process(unsigned long clone_flags,
|
|||
}
|
||||
#endif
|
||||
|
||||
#ifdef CONFIG_DEBUG_MUTEXES
|
||||
p->blocked_on = NULL; /* not blocked yet */
|
||||
#endif
|
||||
|
||||
p->tgid = p->pid;
|
||||
if (clone_flags & CLONE_THREAD)
|
||||
p->tgid = current->tgid;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue