]> www.infradead.org Git - users/willy/xarray.git/commit
coresight: Convert etr_bufs to XArray
authorMatthew Wilcox (Oracle) <willy@infradead.org>
Wed, 7 Aug 2019 12:48:51 +0000 (08:48 -0400)
committerMatthew Wilcox (Oracle) <willy@infradead.org>
Fri, 9 Aug 2019 01:38:19 +0000 (21:38 -0400)
commit9cc4aa812ae6bbcba21ecefaf9d6f68f87c97183
tree7a6a8adbf9a9a077c634fb0c714c4bf540d1611e
parent2fbe4369ab52f864875dec12c73e791f5eb95a82
coresight: Convert etr_bufs to XArray

Use an XArray instead of an IDR to hold the etr_bufs.  The cmpxchg
operator leads to simpler code than the prior allocation code.  We don't
need the mutex any more as the XArray contains its own spinlock to
protect against simultaneous modifications.

Signed-off-by: Matthew Wilcox (Oracle) <willy@infradead.org>
drivers/hwtracing/coresight/coresight-tmc-etr.c
drivers/hwtracing/coresight/coresight-tmc.c
drivers/hwtracing/coresight/coresight-tmc.h