diff options
author | Sebastian Andrzej Siewior <bigeasy@linutronix.de> | 2020-06-30 12:45:14 +0300 |
---|---|---|
committer | Minda Chen <minda.chen@starfivetech.com> | 2023-11-06 14:24:51 +0300 |
commit | 3a2082769702a96b80d8f1c7c6420df7237ec826 (patch) | |
tree | 0bf52bbc4a52d38935ce01bbfa344c498e327fd7 /net/lapb/lapb_subr.c | |
parent | 6aaa52aeaebdd3e77a1da8f961047ba8c5fb5877 (diff) | |
download | linux-3a2082769702a96b80d8f1c7c6420df7237ec826.tar.xz |
x86/entry: Use should_resched() in idtentry_exit_cond_resched()
The TIF_NEED_RESCHED bit is inlined on x86 into the preemption counter.
By using should_resched(0) instead of need_resched() the same check can
be performed which uses the same variable as 'preempt_count()` which was
issued before.
Use should_resched(0) instead need_resched().
Signed-off-by: Sebastian Andrzej Siewior <bigeasy@linutronix.de>
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Diffstat (limited to 'net/lapb/lapb_subr.c')
0 files changed, 0 insertions, 0 deletions