OSDN Git Service

sched/core: Update preempt_notifier_key to modern API
authorDavidlohr Bueso <dave@stgolabs.net>
Mon, 26 Mar 2018 21:09:26 +0000 (14:09 -0700)
committerIngo Molnar <mingo@kernel.org>
Tue, 27 Mar 2018 05:51:45 +0000 (07:51 +0200)
commitb720342849fe685310fca01748a32730a6eca5aa
tree0992d0036939a5514b91068a7cb2e511b8ca78ea
parente97a90f7069b740575bcb1dae86596e0484b8957
sched/core: Update preempt_notifier_key to modern API

No changes in refcount semantics, use DEFINE_STATIC_KEY_FALSE()
for initialization and replace:

  static_key_slow_inc|dec()   =>   static_branch_inc|dec()
  static_key_false()          =>   static_branch_unlikely()

Signed-off-by: Davidlohr Bueso <dbueso@suse.de>
Cc: Davidlohr Bueso <dave@stgolabs.net>
Cc: Linus Torvalds <torvalds@linux-foundation.org>
Cc: Peter Zijlstra <peterz@infradead.org>
Cc: Thomas Gleixner <tglx@linutronix.de>
Cc: akpm@linux-foundation.org
Link: http://lkml.kernel.org/r/20180326210929.5244-4-dave@stgolabs.net
Signed-off-by: Ingo Molnar <mingo@kernel.org>
kernel/sched/core.c