diff options
author | Graf Yang <graf.yang@analog.com> | 2009-09-28 11:23:05 +0200 |
---|---|---|
committer | Mike Frysinger <vapier@gentoo.org> | 2009-12-15 06:14:03 +0100 |
commit | 46fe23ac39a0cdc4272946c1e3f9ff4fd5765a5b (patch) | |
tree | 2e57b632cf007dc7416af94bdf4f8d20322e8403 /arch/blackfin/include/asm/trace.h | |
parent | Blackfin: cpufreq: use a constant latency (diff) | |
download | linux-46fe23ac39a0cdc4272946c1e3f9ff4fd5765a5b.tar.xz linux-46fe23ac39a0cdc4272946c1e3f9ff4fd5765a5b.zip |
Blackfin: add C define of trace_buffer_init()
Have the C API trace funcs match the assembly API trace funcs.
Signed-off-by: Graf Yang <graf.yang@analog.com>
Signed-off-by: Mike Frysinger <vapier@gentoo.org>
Diffstat (limited to 'arch/blackfin/include/asm/trace.h')
-rw-r--r-- | arch/blackfin/include/asm/trace.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/arch/blackfin/include/asm/trace.h b/arch/blackfin/include/asm/trace.h index 609ad3c84189..dc0aa55ae773 100644 --- a/arch/blackfin/include/asm/trace.h +++ b/arch/blackfin/include/asm/trace.h @@ -28,6 +28,8 @@ extern unsigned long software_trace_buff[]; #ifdef CONFIG_DEBUG_BFIN_HWTRACE_ON +#define trace_buffer_init() bfin_write_TBUFCTL(BFIN_TRACE_INIT) + #define trace_buffer_save(x) \ do { \ (x) = bfin_read_TBUFCTL(); \ |