- futex uses int as its atomic word type, we pass in user_tid
to the futex routines, so the types must match
* Does the userspace VM want the TID cleared on mm_release()?
*/
if (clone_flags & CLONE_CLEARTID)
- p->user_tid = (long *) childregs->edx;
+ p->user_tid = (int *) childregs->edx;
return 0;
}
wait_queue_head_t wait_chldexit; /* for wait4() */
struct completion *vfork_done; /* for vfork() */
- long *user_tid; /* for CLONE_CLEARTID */
+ int *user_tid; /* for CLONE_CLEARTID */
unsigned long rt_priority;
unsigned long it_real_value, it_prof_value, it_virt_value;
* We dont check the error code - if userspace has
* not set up a proper pointer then tough luck.
*/
- put_user(0UL, tsk->user_tid);
+ put_user(0, tsk->user_tid);
sys_futex(tsk->user_tid, FUTEX_WAKE, 1, NULL);
}
}