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)
commit6498ddad301c7a94162915d06d1efe2e5d20f6dc
treeb823456fd4e12982b6ad59d12192b437d9c30a34
parentf09777fa891327ee0dd892e83619f156bf1c37e6
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