]> git.baikalelectronics.ru Git - kernel.git/commit
kthread: Do not use TIMER_IRQSAFE
authorSebastian Andrzej Siewior <bigeasy@linutronix.de>
Tue, 12 Feb 2019 16:25:54 +0000 (17:25 +0100)
committerThomas Gleixner <tglx@linutronix.de>
Thu, 28 Feb 2019 10:18:38 +0000 (11:18 +0100)
commit3141d373a43d1c4a6b267dd1149b3e2380a44fed
tree0c63d73a349d8c51b3de8b71440de07564a38221
parentb36c06b977e8109ba3cd961929fdfa459e25faa4
kthread: Do not use TIMER_IRQSAFE

The TIMER_IRQSAFE usage was introduced in commit f5cce041c2449 ("kthread:
initial support for delayed kthread work") which modelled the delayed
kthread code after workqueue's code. The workqueue code requires the flag
TIMER_IRQSAFE for synchronisation purpose. This is not true for kthread's
delay timer since all operations occur under a lock.

Remove TIMER_IRQSAFE from the timer initialisation and use timer_setup()
for initialisation purpose which is the official function.

Signed-off-by: Sebastian Andrzej Siewior <bigeasy@linutronix.de>
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Reviewed-by: Petr Mladek <pmladek@suse.com>
Link: https://lkml.kernel.org/r/20190212162554.19779-2-bigeasy@linutronix.de
include/linux/kthread.h
kernel/kthread.c