aboutsummaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/export-to-postgresql.py
diff options
context:
space:
mode:
authorMatthias Kaehlcke <[email protected]>2019-01-28 15:46:24 -0800
committerThomas Gleixner <[email protected]>2019-02-10 21:51:39 +0100
commit0121805d9d2b1fff371e195c28e9b86ae38b5e47 (patch)
tree0df07f6984426c1adc9ca8f779f4b2b96b2677f9 /tools/perf/scripts/python/export-to-postgresql.py
parentc2da3f1b711173b72378258496b49f74db7479de (diff)
kthread: Add __kthread_should_park()
kthread_should_park() is used to check if the calling kthread ('current') should park, but there is no function to check whether an arbitrary kthread should be parked. The latter is required to plug a CPU hotplug race vs. a parking ksoftirqd thread. The new __kthread_should_park() receives a task_struct as parameter to check if the corresponding kernel thread should be parked. Call __kthread_should_park() from kthread_should_park() to avoid code duplication. Signed-off-by: Matthias Kaehlcke <[email protected]> Signed-off-by: Thomas Gleixner <[email protected]> Cc: Peter Zijlstra <[email protected]> Cc: Steven Rostedt <[email protected]> Cc: "Paul E . McKenney" <[email protected]> Cc: Sebastian Andrzej Siewior <[email protected]> Cc: Douglas Anderson <[email protected]> Cc: Stephen Boyd <[email protected]> Link: https://lkml.kernel.org/r/[email protected]
Diffstat (limited to 'tools/perf/scripts/python/export-to-postgresql.py')
0 files changed, 0 insertions, 0 deletions