/* This is called by do_exit or de_thread, only when there are no more references to the shared signal_struct.  */
void exit_itimers(struct signal_struct *sig)
/* This is called by do_exit or de_thread, only when there are no more references to the shared signal_struct.  */
void exit_itimers(struct signal_struct *sig)
{
	struct k_itimer *tmr;
	while (!list_empty(&sig->posix_timers)) {
		tmr = list_entry(sig->posix_timers.next, struct k_itimer, list);
		itimer_delete(tmr);
	}
}