diff options
author | 2021-09-23 18:54:38 +0200 | |
---|---|---|
committer | 2021-10-01 13:57:50 +0200 | |
commit | 42a387566c567603bafa1ec0c5b71c35cba83e86 (patch) | |
tree | 084bea1dd5c9d4f7dde23dee93895bcfabb1df90 /kernel/sched | |
parent | sched: Make cond_resched_*lock() variants consistent vs. might_sleep() (diff) | |
download | linux-dev-42a387566c567603bafa1ec0c5b71c35cba83e86.tar.xz linux-dev-42a387566c567603bafa1ec0c5b71c35cba83e86.zip |
sched: Remove preempt_offset argument from __might_sleep()
All callers hand in 0 and never will hand in anything else.
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Signed-off-by: Peter Zijlstra (Intel) <peterz@infradead.org>
Link: https://lkml.kernel.org/r/20210923165358.054321586@linutronix.de
Diffstat (limited to 'kernel/sched')
-rw-r--r-- | kernel/sched/core.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/kernel/sched/core.c b/kernel/sched/core.c index c3943aa2f60c..2d790df62ec9 100644 --- a/kernel/sched/core.c +++ b/kernel/sched/core.c @@ -9475,7 +9475,7 @@ static inline int preempt_count_equals(int preempt_offset) return (nested == preempt_offset); } -void __might_sleep(const char *file, int line, int preempt_offset) +void __might_sleep(const char *file, int line) { unsigned int state = get_current_state(); /* @@ -9489,7 +9489,7 @@ void __might_sleep(const char *file, int line, int preempt_offset) (void *)current->task_state_change, (void *)current->task_state_change); - __might_resched(file, line, preempt_offset); + __might_resched(file, line, 0); } EXPORT_SYMBOL(__might_sleep); |