aboutsummaryrefslogtreecommitdiff
path: root/lib/cpu-notifier-error-inject.c
diff options
context:
space:
mode:
authorPeter Zijlstra <[email protected]>2013-10-02 11:22:18 +0200
committerIngo Molnar <[email protected]>2013-10-04 10:14:44 +0200
commit2f2a2b60adf368bacd6acd2116c01e32caf936c4 (patch)
treeec7b7bac11365f1d0ae1a2d258429e265f27445d /lib/cpu-notifier-error-inject.c
parent75f93fed50c2abadbab6ef546b265f51ca975b27 (diff)
sched/wait: Make the signal_pending() checks consistent
There's two patterns to check signals in the __wait_event*() macros: if (!signal_pending(current)) { schedule(); continue; } ret = -ERESTARTSYS; break; And the more natural: if (signal_pending(current)) { ret = -ERESTARTSYS; break; } schedule(); Change them all into the latter form. Reviewed-by: Oleg Nesterov <[email protected]> Signed-off-by: Peter Zijlstra <[email protected]> Link: http://lkml.kernel.org/r/[email protected] Signed-off-by: Ingo Molnar <[email protected]>
Diffstat (limited to 'lib/cpu-notifier-error-inject.c')
0 files changed, 0 insertions, 0 deletions