diff options
author | 2020-10-26 14:32:27 -0600 | |
---|---|---|
committer | 2020-10-29 09:37:36 +0100 | |
commit | 5c251e9dc0e127bac6fc5b8e6696363d2e35f515 (patch) | |
tree | af85becb99286799a21b7a5642d85676ca46630b /tools/perf/scripts/python/export-to-postgresql.py | |
parent | Linux 5.9-rc1 (diff) | |
download | linux-dev-5c251e9dc0e127bac6fc5b8e6696363d2e35f515.tar.xz linux-dev-5c251e9dc0e127bac6fc5b8e6696363d2e35f515.zip |
signal: Add task_sigpending() helper
This is in preparation for maintaining signal_pending() as the decider of
whether or not a schedule() loop should be broken, or continue sleeping.
This is different than the core signal use cases, which really need to know
whether an actual signal is pending or not. task_sigpending() returns
non-zero if TIF_SIGPENDING is set.
Only core kernel use cases should care about the distinction between
the two, make sure those use the task_sigpending() helper.
Signed-off-by: Jens Axboe <axboe@kernel.dk>
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Reviewed-by: Thomas Gleixner <tglx@linutronix.de>
Reviewed-by: Oleg Nesterov <oleg@redhat.com>
Link: https://lore.kernel.org/r/20201026203230.386348-2-axboe@kernel.dk
Diffstat (limited to 'tools/perf/scripts/python/export-to-postgresql.py')
0 files changed, 0 insertions, 0 deletions