revert the current thread change
[lttv.git] / genevent / genevent.c
index faf362e5543426dd05d4124f073e9c89435cf6de..c788d85a92bc8e9298c59f1be82597d05f7a3b71 100644 (file)
@@ -1508,7 +1508,7 @@ int print_event_logging_function(char *basename, facility_t *fac,
        print_tabs(1, fd);
        fprintf(fd, "preempt_disable();\n");
        print_tabs(1, fd);
-       fprintf(fd, "current->ltt_nesting++;\n");
+       fprintf(fd, "ltt_nesting[smp_processor_id()]++;\n");
 
        /* Get facility index */
 
@@ -1632,7 +1632,7 @@ int print_event_logging_function(char *basename, facility_t *fac,
 
        /* Release locks */
        print_tabs(1, fd);
-       fprintf(fd, "current->ltt_nesting--;\n");
+       fprintf(fd, "ltt_nesting[smp_processor_id()]--;\n");
        print_tabs(1, fd);
        fprintf(fd, "preempt_enable_no_resched();\n");
 
This page took 0.022313 seconds and 4 git commands to generate.