Staging: lustre: tracefile: Replace function calls
authorShivani Bhardwaj <shivanib134@gmail.com>
Mon, 2 Nov 2015 18:59:22 +0000 (00:29 +0530)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 16 Nov 2015 04:02:47 +0000 (20:02 -0800)
Replace the calls of function cfs_trace_put_console_buffer() with
put_cpu() as former is just a wrapper for latter.

Signed-off-by: Shivani Bhardwaj <shivanib134@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/lustre/lustre/libcfs/tracefile.c

index f2d018d7823cdeb3f29b48cf970ed5f98b9c49da..f99d30f799e0c5cb56225c047abb773e2482a5b4 100644 (file)
@@ -451,7 +451,7 @@ console:
                cfs_print_to_console(&header, mask,
                                     string_buf, needed, file, msgdata->msg_fn);
 
-               cfs_trace_put_console_buffer(string_buf);
+               put_cpu();
        }
 
        if (cdls != NULL && cdls->cdls_count != 0) {
@@ -465,7 +465,7 @@ console:
                cfs_print_to_console(&header, mask,
                                     string_buf, needed, file, msgdata->msg_fn);
 
-               cfs_trace_put_console_buffer(string_buf);
+               put_cpu();
                cdls->cdls_count = 0;
        }