]> rtime.felk.cvut.cz Git - zynq/linux.git/commit
perf/x86: Update rdpmc_always_available static key to the modern API
authorDavidlohr Bueso <dave@stgolabs.net>
Mon, 26 Mar 2018 21:09:27 +0000 (14:09 -0700)
committerIngo Molnar <mingo@kernel.org>
Tue, 27 Mar 2018 05:53:00 +0000 (07:53 +0200)
commit631fe154edb0a37308d0116a0f9b7bba9dca6218
tree27ce57beb266c6ce31d546080e833353da2a6fd2
parenta0ac7b3ca941fbbf96b48df7de6542d18d8d92f3
perf/x86: Update rdpmc_always_available static key to the 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()

Added a '_key' suffix to rdpmc_always_available, for better self-documentation.

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-5-dave@stgolabs.net
Signed-off-by: Ingo Molnar <mingo@kernel.org>
arch/x86/events/core.c
arch/x86/include/asm/mmu_context.h