]> git.baikalelectronics.ru Git - kernel.git/commit
softirq: Consolidate common code in __tasklet_[hi]_schedule()
authorIngo Molnar <mingo@kernel.org>
Tue, 27 Feb 2018 16:48:07 +0000 (17:48 +0100)
committerThomas Gleixner <tglx@linutronix.de>
Fri, 9 Mar 2018 10:50:55 +0000 (11:50 +0100)
commit724da8191b3b1893c388c02e30b9e263186368fa
treeb823456fd4e12982b6ad59d12192b437d9c30a34
parentb4f0233eabdc94e819ca009cfa289f68b994aa12
softirq: Consolidate common code in __tasklet_[hi]_schedule()

__tasklet_schedule() and __tasklet_hi_schedule() are almost identical.
Move the common code from both function into __tasklet_schedule_common()
and let both functions invoke it with different arguments.

[ bigeasy: Splitted out from RT's "tasklet: Prevent tasklets from going
      into infinite spin in RT" and added commit message. Use
      this_cpu_ptr(headp) in __tasklet_schedule_common() as suggested
      by Julia Cartwright ]

Signed-off-by: Ingo Molnar <mingo@kernel.org>
Signed-off-by: Steven Rostedt <rostedt@goodmis.org>
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Signed-off-by: Sebastian Andrzej Siewior <bigeasy@linutronix.de>
Cc: Julia Cartwright <juliac@eso.teric.us>
Link: https://lkml.kernel.org/r/20180227164808.10093-2-bigeasy@linutronix.de
kernel/softirq.c