aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMathieu Poirier <mathieu.poirier@linaro.org>2016-05-03 13:33:58 -0400
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2016-05-03 17:59:30 -0400
commita02e81f7a32b49f3cb70c5ebd2eab5608a088514 (patch)
tree5566ffdd56759bb79e15c49d6b0f25cef04c57fd
parent4f1ff3de925d741b0b77c59bc1387cb940ad7c73 (diff)
coresight: moving struct cs_buffers to header file
That way we can re-use the structure in other drivers. Signed-off-by: Mathieu Poirier <mathieu.poirier@linaro.org> Reviewed-by: Suzuki K Poulose <suzuki.poulose@arm.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
-rw-r--r--drivers/hwtracing/coresight/coresight-etb10.c20
-rw-r--r--drivers/hwtracing/coresight/coresight-priv.h20
2 files changed, 20 insertions, 20 deletions
diff --git a/drivers/hwtracing/coresight/coresight-etb10.c b/drivers/hwtracing/coresight/coresight-etb10.c
index b0d402dbfeae..92f942321e1e 100644
--- a/drivers/hwtracing/coresight/coresight-etb10.c
+++ b/drivers/hwtracing/coresight/coresight-etb10.c
@@ -71,26 +71,6 @@
71#define ETB_FRAME_SIZE_WORDS 4 71#define ETB_FRAME_SIZE_WORDS 4
72 72
73/** 73/**
74 * struct cs_buffer - keep track of a recording session' specifics
75 * @cur: index of the current buffer
76 * @nr_pages: max number of pages granted to us
77 * @offset: offset within the current buffer
78 * @data_size: how much we collected in this run
79 * @lost: other than zero if we had a HW buffer wrap around
80 * @snapshot: is this run in snapshot mode
81 * @data_pages: a handle the ring buffer
82 */
83struct cs_buffers {
84 unsigned int cur;
85 unsigned int nr_pages;
86 unsigned long offset;
87 local_t data_size;
88 local_t lost;
89 bool snapshot;
90 void **data_pages;
91};
92
93/**
94 * struct etb_drvdata - specifics associated to an ETB component 74 * struct etb_drvdata - specifics associated to an ETB component
95 * @base: memory mapped base address for this component. 75 * @base: memory mapped base address for this component.
96 * @dev: the device entity associated to this component. 76 * @dev: the device entity associated to this component.
diff --git a/drivers/hwtracing/coresight/coresight-priv.h b/drivers/hwtracing/coresight/coresight-priv.h
index 3b5dd95a3588..ad975c58080d 100644
--- a/drivers/hwtracing/coresight/coresight-priv.h
+++ b/drivers/hwtracing/coresight/coresight-priv.h
@@ -53,6 +53,26 @@ enum cs_mode {
53 CS_MODE_PERF, 53 CS_MODE_PERF,
54}; 54};
55 55
56/**
57 * struct cs_buffer - keep track of a recording session' specifics
58 * @cur: index of the current buffer
59 * @nr_pages: max number of pages granted to us
60 * @offset: offset within the current buffer
61 * @data_size: how much we collected in this run
62 * @lost: other than zero if we had a HW buffer wrap around
63 * @snapshot: is this run in snapshot mode
64 * @data_pages: a handle the ring buffer
65 */
66struct cs_buffers {
67 unsigned int cur;
68 unsigned int nr_pages;
69 unsigned long offset;
70 local_t data_size;
71 local_t lost;
72 bool snapshot;
73 void **data_pages;
74};
75
56static inline void CS_LOCK(void __iomem *addr) 76static inline void CS_LOCK(void __iomem *addr)
57{ 77{
58 do { 78 do {