mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-31 04:01:48 -04:00
signals: join send_sigqueue() with send_group_sigqueue()
We export send_sigqueue() and send_group_sigqueue() for the only user, posix_timer_event(). This is a bit silly, because both are just trivial helpers on top of do_send_sigqueue() and because the we pass the unused .si_signo parameter. Kill them both, rename do_send_sigqueue() to send_sigqueue(), and export it. Signed-off-by: Oleg Nesterov <[email protected]> Cc: Roland McGrath <[email protected]> Signed-off-by: Andrew Morton <[email protected]> Signed-off-by: Linus Torvalds <[email protected]>
This commit is contained in:
parent
e62e6650e9
commit
ac5c215383
3 changed files with 4 additions and 20 deletions
|
|
@ -310,8 +310,7 @@ int posix_timer_event(struct k_itimer *timr,int si_private)
|
|||
|
||||
if (timr->it_sigev_notify & SIGEV_THREAD_ID) {
|
||||
struct task_struct *leader;
|
||||
int ret = send_sigqueue(timr->it_sigev_signo, timr->sigq,
|
||||
timr->it_process);
|
||||
int ret = send_sigqueue(timr->sigq, timr->it_process, 0);
|
||||
|
||||
if (likely(ret >= 0))
|
||||
return ret;
|
||||
|
|
@ -322,8 +321,7 @@ int posix_timer_event(struct k_itimer *timr,int si_private)
|
|||
timr->it_process = leader;
|
||||
}
|
||||
|
||||
return send_group_sigqueue(timr->it_sigev_signo, timr->sigq,
|
||||
timr->it_process);
|
||||
return send_sigqueue(timr->sigq, timr->it_process, 1);
|
||||
}
|
||||
EXPORT_SYMBOL_GPL(posix_timer_event);
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue