diff options
author | Alexander Shishkin <virtuoso@slind.org> | 2010-08-04 12:22:43 +0200 |
---|---|---|
committer | Russell King <rmk+kernel@arm.linux.org.uk> | 2010-10-04 21:20:44 +0200 |
commit | 8234eaef8002cb8ba30920949b338d692508137a (patch) | |
tree | 59c58f83e197ebad2ba78bff82f245a3c14507b1 /arch/arm/kernel/etm.c | |
parent | Linux 2.6.36-rc6 (diff) | |
download | linux-8234eaef8002cb8ba30920949b338d692508137a.tar.xz linux-8234eaef8002cb8ba30920949b338d692508137a.zip |
ARM: 6291/1: coresight: move struct tracectx inside etm driver
This is done so as to be able to make use of the coresight components'
registers in assembler code (like omap sleep code). Also, there shouldn't
be any users of this structure outside the etm driver.
Cc: linux-arm-kernel@lists.infradead.org
Cc: linux-kernel@vger.kernel.org
Signed-off-by: Alexander Shishkin <virtuoso@slind.org>
Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
Diffstat (limited to 'arch/arm/kernel/etm.c')
-rw-r--r-- | arch/arm/kernel/etm.c | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/arch/arm/kernel/etm.c b/arch/arm/kernel/etm.c index 33c7077174db..a48d51257988 100644 --- a/arch/arm/kernel/etm.c +++ b/arch/arm/kernel/etm.c @@ -30,6 +30,21 @@ MODULE_LICENSE("GPL"); MODULE_AUTHOR("Alexander Shishkin"); +/* + * ETM tracer state + */ +struct tracectx { + unsigned int etb_bufsz; + void __iomem *etb_regs; + void __iomem *etm_regs; + unsigned long flags; + int ncmppairs; + int etm_portsz; + struct device *dev; + struct clk *emu_clk; + struct mutex mutex; +}; + static struct tracectx tracer; static inline bool trace_isrunning(struct tracectx *t) |