Blackfin: add C define of trace_buffer_init()
authorGraf Yang <graf.yang@analog.com>
Mon, 28 Sep 2009 09:23:05 +0000 (09:23 +0000)
committerMike Frysinger <vapier@gentoo.org>
Tue, 15 Dec 2009 05:14:03 +0000 (00:14 -0500)
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>
arch/blackfin/include/asm/trace.h

index 609ad3c841891c0bb59cb9784edf113da932ed39..dc0aa55ae773420fb426733e0b437d089580a692 100644 (file)
@@ -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(); \