From: Graf Yang Date: Mon, 28 Sep 2009 09:23:05 +0000 (+0000) Subject: Blackfin: add C define of trace_buffer_init() X-Git-Url: http://drtracing.org/?a=commitdiff_plain;h=46fe23ac39a0cdc4272946c1e3f9ff4fd5765a5b;p=deliverable%2Flinux.git 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 Signed-off-by: Mike Frysinger --- 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(); \