OSDN Git Service

intel_th: msu: Add current window tracking
authorAlexander Shishkin <alexander.shishkin@linux.intel.com>
Fri, 3 May 2019 08:44:51 +0000 (11:44 +0300)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 3 May 2019 16:17:40 +0000 (18:17 +0200)
commitaad14ad3cf3a63bd258b65e18d49c3eb8472d344
tree50a799117eaf5425c24914de5d83e01b1bb75521
parent6cac7866c27418cd784fbb8041c2dddd6d966bc7
intel_th: msu: Add current window tracking

Now that we have a way to switch between MSC buffer windows, add code to
track the current window. The hardware register NWSA that contains the
address of the next window is unfortunately not always usable, and since
the driver has full control of the window switching, there is no reason
not to keep this on the software side.

Signed-off-by: Alexander Shishkin <alexander.shishkin@linux.intel.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/hwtracing/intel_th/msu.c