File tree Expand file tree Collapse file tree 4 files changed +0
-12
lines changed Expand file tree Collapse file tree 4 files changed +0
-12
lines changed Original file line number Diff line number Diff line change 37
37
# define _TIF_UPROBE (0)
38
38
#endif
39
39
40
- #ifndef _TIF_NOTIFY_SIGNAL
41
- # define _TIF_NOTIFY_SIGNAL (0)
42
- #endif
43
-
44
40
/*
45
41
* TIF flags handled in syscall_enter_from_user_mode()
46
42
*/
Original file line number Diff line number Diff line change @@ -360,15 +360,13 @@ static inline int task_sigpending(struct task_struct *p)
360
360
361
361
static inline int signal_pending (struct task_struct * p )
362
362
{
363
- #if defined(TIF_NOTIFY_SIGNAL )
364
363
/*
365
364
* TIF_NOTIFY_SIGNAL isn't really a signal, but it requires the same
366
365
* behavior in terms of ensuring that we break out of wait loops
367
366
* so that notify signal callbacks can be processed.
368
367
*/
369
368
if (unlikely (test_tsk_thread_flag (p , TIF_NOTIFY_SIGNAL )))
370
369
return 1 ;
371
- #endif
372
370
return task_sigpending (p );
373
371
}
374
372
Original file line number Diff line number Diff line change @@ -205,24 +205,20 @@ static inline void tracehook_notify_resume(struct pt_regs *regs)
205
205
*/
206
206
static inline void tracehook_notify_signal (void )
207
207
{
208
- #if defined(TIF_NOTIFY_SIGNAL )
209
208
clear_thread_flag (TIF_NOTIFY_SIGNAL );
210
209
smp_mb__after_atomic ();
211
210
if (current -> task_works )
212
211
task_work_run ();
213
- #endif
214
212
}
215
213
216
214
/*
217
215
* Called when we have work to process from exit_to_user_mode_loop()
218
216
*/
219
217
static inline void set_notify_signal (struct task_struct * task )
220
218
{
221
- #if defined(TIF_NOTIFY_SIGNAL )
222
219
if (!test_and_set_tsk_thread_flag (task , TIF_NOTIFY_SIGNAL ) &&
223
220
!wake_up_state (task , TASK_INTERRUPTIBLE ))
224
221
kick_process (task );
225
- #endif
226
222
}
227
223
228
224
#endif /* <linux/tracehook.h> */
Original file line number Diff line number Diff line change @@ -2535,14 +2535,12 @@ bool get_signal(struct ksignal *ksig)
2535
2535
* that the arch handlers don't all have to do it. If we get here
2536
2536
* without TIF_SIGPENDING, just exit after running signal work.
2537
2537
*/
2538
- #ifdef TIF_NOTIFY_SIGNAL
2539
2538
if (!IS_ENABLED (CONFIG_GENERIC_ENTRY )) {
2540
2539
if (test_thread_flag (TIF_NOTIFY_SIGNAL ))
2541
2540
tracehook_notify_signal ();
2542
2541
if (!task_sigpending (current ))
2543
2542
return false;
2544
2543
}
2545
- #endif
2546
2544
2547
2545
if (unlikely (uprobe_deny_signal ()))
2548
2546
return false;
You can’t perform that action at this time.
0 commit comments