Skip to content

Commit

Permalink
ARM: 6291/1: coresight: move struct tracectx inside etm driver
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Alexander Shishkin authored and Russell King committed Oct 4, 2010
1 parent 899611e commit 8234eae
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 12 deletions.
12 changes: 0 additions & 12 deletions arch/arm/include/asm/hardware/coresight.h
Original file line number Diff line number Diff line change
Expand Up @@ -21,18 +21,6 @@
#define TRACER_RUNNING BIT(TRACER_RUNNING_BIT)
#define TRACER_CYCLE_ACC BIT(TRACER_CYCLE_ACC_BIT)

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;
};

#define TRACER_TIMEOUT 10000

#define etm_writel(t, v, x) \
Expand Down
15 changes: 15 additions & 0 deletions arch/arm/kernel/etm.c
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 8234eae

Please sign in to comment.