diff options
author | Waiman Long | 2019-04-04 19:43:16 +0200 |
---|---|---|
committer | Ingo Molnar | 2019-04-10 10:56:03 +0200 |
commit | ad53fa10fa9e816067bbae7109845940f5e6df50 (patch) | |
tree | f11a7988ec0c534516d75a86e60b0f68ffabf841 /drivers/usb/usbip/usbip_common.h | |
parent | locking/rwsem: Enhance DEBUG_RWSEMS_WARN_ON() macro (diff) | |
download | kernel-qcow2-linux-ad53fa10fa9e816067bbae7109845940f5e6df50.tar.gz kernel-qcow2-linux-ad53fa10fa9e816067bbae7109845940f5e6df50.tar.xz kernel-qcow2-linux-ad53fa10fa9e816067bbae7109845940f5e6df50.zip |
locking/qspinlock_stat: Introduce generic lockevent_*() counting APIs
The percpu event counts used by qspinlock code can be useful for
other locking code as well. So a new set of lockevent_* counting APIs
is introduced with the lock event names extracted out into the new
lock_events_list.h header file for easier addition in the future.
The existing qstat_inc() calls are replaced by either lockevent_inc() or
lockevent_cond_inc() calls.
The qstat_hop() call is renamed to lockevent_pv_hop(). The "reset_counters"
debugfs file is also renamed to ".reset_counts".
Signed-off-by: Waiman Long <longman@redhat.com>
Acked-by: Peter Zijlstra <a.p.zijlstra@chello.nl>
Acked-by: Davidlohr Bueso <dbueso@suse.de>
Cc: Andrew Morton <akpm@linux-foundation.org>
Cc: Arnd Bergmann <arnd@arndb.de>
Cc: Borislav Petkov <bp@alien8.de>
Cc: Davidlohr Bueso <dave@stgolabs.net>
Cc: Linus Torvalds <torvalds@linux-foundation.org>
Cc: Paul E. McKenney <paulmck@linux.vnet.ibm.com>
Cc: Peter Zijlstra <peterz@infradead.org>
Cc: Thomas Gleixner <tglx@linutronix.de>
Cc: Tim Chen <tim.c.chen@linux.intel.com>
Cc: Will Deacon <will.deacon@arm.com>
Link: http://lkml.kernel.org/r/20190404174320.22416-8-longman@redhat.com
Signed-off-by: Ingo Molnar <mingo@kernel.org>
Diffstat (limited to 'drivers/usb/usbip/usbip_common.h')
0 files changed, 0 insertions, 0 deletions