OSDN Git Service

intel_th: msu: Split sgt array and pointer in multiwindow mode
authorAlexander Shishkin <alexander.shishkin@linux.intel.com>
Thu, 27 Jun 2019 12:51:46 +0000 (15:51 +0300)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 3 Jul 2019 15:45:57 +0000 (17:45 +0200)
commitbbbc08a154a1750371f8347a5353819551d11abb
tree3441d622665d1562f415220c735d3e8ea74a83d8
parentfa52b3fe5e9383022f83382f5ffcb386b9b11b4f
intel_th: msu: Split sgt array and pointer in multiwindow mode

To allow the use of externally allocated SG tables further down the line,
change the code to reference the table via a pointer and make it point to
the locally allocated table by default.

Signed-off-by: Alexander Shishkin <alexander.shishkin@linux.intel.com>
Reviewed-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Link: https://lore.kernel.org/r/20190627125152.54905-4-alexander.shishkin@linux.intel.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/hwtracing/intel_th/msu.c