diff options
author | Peter Zijlstra <peterz@infradead.org> | 2021-03-09 09:42:09 +0100 |
---|---|---|
committer | Thomas Gleixner <tglx@linutronix.de> | 2021-03-17 16:33:57 +0100 |
commit | 697d8c63c4a2991a22a896a5e6adcdbb28fefe56 (patch) | |
tree | 223efa50042365abc94dcbec5287e94c94773aa0 /drivers/net/ethernet/jme.h | |
parent | da044747401fc16202e223c9da970ed4e84fd84d (diff) | |
download | linux-stable-697d8c63c4a2991a22a896a5e6adcdbb28fefe56.tar.gz linux-stable-697d8c63c4a2991a22a896a5e6adcdbb28fefe56.tar.bz2 linux-stable-697d8c63c4a2991a22a896a5e6adcdbb28fefe56.zip |
tasklets: Replace spin wait in tasklet_kill()
tasklet_kill() spin waits for TASKLET_STATE_SCHED to be cleared invoking
yield() from inside the loop. yield() is an ill defined mechanism and the
result might still be wasting CPU cycles in a tight loop which is
especially painful in a guest when the CPU running the tasklet is scheduled
out.
tasklet_kill() is used in teardown paths and not performance critical at
all. Replace the spin wait with wait_var_event().
Signed-off-by: Peter Zijlstra <peterz@infradead.org>
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Acked-by: Peter Zijlstra (Intel) <peterz@infradead.org>
Link: https://lore.kernel.org/r/20210309084241.890532921@linutronix.de
Diffstat (limited to 'drivers/net/ethernet/jme.h')
0 files changed, 0 insertions, 0 deletions