On Thu, Aug 11, 2016 at 12:35:40PM +0530, [email protected] wrote: > From: Akash Goel <[email protected]> > > relay essentially needs to maintain the per CPU array of channel buffer > pointers but it manually creates that array. > Instead its better to avail the per CPU constructs, provided by the > kernel, to allocate & access the array of pointer to channel buffers. > > Cc: Chris Wilson <[email protected]> > Cc: Tvrtko Ursulin <[email protected]> > Signed-off-by: Akash Goel <[email protected]>
This has the benefit of being a mechnical change and I could not think of a better way to express the per-cpu indirection. relay.h should probably include <linux/percpu.h> so that it pulls in the percpu api explicitly. Reviewed-by: Chris Wilson <[email protected]> -Chris -- Chris Wilson, Intel Open Source Technology Centre

