]> www.pilppa.org Git - linux-2.6-omap-h63xx.git/blobdiff - kernel/trace/ftrace.c
ftrace: do not init module on ftrace disabled
[linux-2.6-omap-h63xx.git] / kernel / trace / ftrace.c
index eadd0eaea9b6b70449bf7db247f215b096c4bc30..11d94f2dc485fabb251bbb3bd229bb0ea685716a 100644 (file)
@@ -307,7 +307,7 @@ void ftrace_release(void *start, unsigned long size)
        unsigned long e = s + size;
        int i;
 
-       if (!start)
+       if (ftrace_disabled || !start)
                return;
 
        /* No interrupt should call this */
@@ -1567,7 +1567,7 @@ static int ftrace_convert_nops(unsigned long *start,
 
 void ftrace_init_module(unsigned long *start, unsigned long *end)
 {
-       if (start == end)
+       if (ftrace_disabled || start == end)
                return;
        ftrace_convert_nops(start, end);
 }