From d80d30ff8b9122aa51135e942e35566904f32ee5 Mon Sep 17 00:00:00 2001 From: Roland McGrath Date: Mon, 7 Mar 2005 18:17:29 -0800 Subject: [PATCH] make ITIMER_PROF, ITIMER_VIRTUAL per-process POSIX requires that setitimer, getitimer, and alarm work on a per-process basis. Currently, Linux implements these for individual threads. This patch fixes these semantics for the ITIMER_PROF timer (which generates SIGPROF) and the ITIMER_VIRTUAL timer (which generates SIGVTALRM), making them shared by all threads in a process (thread group). This patch should be applied after the one that fixes ITIMER_REAL. The essential machinery for these timers is tied into the new posix-timers code for process CPU clocks and timers. This patch requires the cputimers patch and its dependencies. Signed-off-by: Roland McGrath Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- kernel/exit.c | 3 --- 1 file changed, 3 deletions(-) (limited to 'kernel/exit.c') diff --git a/kernel/exit.c b/kernel/exit.c index db204cd02d8b..ae320758b2f5 100644 --- a/kernel/exit.c +++ b/kernel/exit.c @@ -753,9 +753,6 @@ static void exit_notify(struct task_struct *tsk) state = EXIT_DEAD; tsk->exit_state = state; - tsk->it_virt_value = cputime_zero; - tsk->it_prof_value = cputime_zero; - write_unlock_irq(&tasklist_lock); list_for_each_safe(_p, _n, &ptrace_dead) { -- cgit v1.2.3